Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. const botSettings = require("./botsettings.json");
  2. const Discord = require("discord.js");
  3.  
  4. const bot = new Discord.Client({disableEveryone: true});
  5.  
  6. const memsy = ['./1.png', './2.jpg', './3.jpg', './4.jpg'];
  7.  
  8. const Hentaice = ['./a.jpg', './b.jpg', './c.jpg', './d.jpg', './e.jpg', './f.gif'];
  9.  
  10. const liczby = ['1', '2', '3', '4', '5'];
  11.  
  12.  
  13.  
  14.  
  15. bot.on("ready", async () => {
  16. console.log("Bot is ready! "+bot.user.username);
  17.  
  18. try {
  19. link = await bot.generateInvite(["ADMINISTRATOR"]);
  20. console.log(link);
  21. }catch(e) {
  22. console.log(e.stack);
  23. }
  24. });
  25.  
  26. bot.on("message", async message => {
  27. if(message.author.bot) return;
  28. if(message.channel.type === "dm") return;
  29.  
  30. messageArray = message.content.split(" ");
  31. command = messageArray[0];
  32. args = messageArray.slice(1);
  33.  
  34.  
  35.  
  36. if(!command.startsWith(botSettings.prefix)) return;
  37.  
  38. if(command === botSettings.prefix+`AAA`) {
  39. message.channel.send("Kutas kozła");
  40. }
  41. if(command === botSettings.prefix+`Pedau`) {
  42. message.channel.send("Jeb sie kurwo :upside_down:");
  43. }
  44. if(command === botSettings.prefix+`Jajamnieswedza`) {
  45. message.channel.send("To sie podrap :cherries: ");
  46. }
  47. if(command === botSettings.prefix+`cipka`) {
  48. message.channel.send(new Discord.Attachment("./Kutas.jpg", "Kutas.jpg"));
  49. }
  50. if(command === botSettings.prefix+`kurczaki`) {
  51. message.channel.send("Ziemniaki");
  52. }
  53. if(command === botSettings.prefix+`ziemniaki`) {
  54. message.channel.send("Kurczaki");
  55. }
  56. if(command === botSettings.prefix+`chuj`) {
  57. message.channel.send("Nie klnij kurwo");
  58. }
  59. if(command === botSettings.prefix+`love`) {
  60. message.channel.send(new Discord.Attachment("./love.gif", "love.gif"));
  61. }
  62. if(command === botSettings.prefix+`meme`) {
  63. message.channel.send(`Łap!`);
  64. message.channel.send(new Discord.Attachment(memsy[Math.floor(Math.random() * memsy.length)]));
  65. }
  66. if(command === botSettings.prefix+`zawod?`) {
  67. message.channel.send("Andwonkant");
  68. }
  69. if(command === botSettings.prefix+`hentai`) {
  70. message.channel.send("Pervert!");
  71. message.channel.send(new Discord.Attachment(Hentaice[Math.floor(Math.random() * Hentaice.length)]));
  72. }
  73.  
  74. const folder = './m/';
  75. const fs = require('fs')
  76.  
  77. if(command === botSettings.prefix+`zdj`) {
  78. message.channel.send(new Discord.Attachment(folder[Math.floor(Math.random() * liczby.length)]));
  79. }
  80. });
  81.  
  82. bot.login(botSettings.token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement