Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. const Discord = require('discord.js')
  2. const bot = new Discord.Client();
  3. const fs = require('fs');
  4. const botconfig = require("./botconfig.json");
  5.  
  6. bot.on('message', message => {
  7.  
  8. var prefix = botconfig.prefix;
  9. var msg = message.content.toUpperCase();
  10. var sender = message.author;
  11. var cont = message.content.slice(prefix.length).split(" ");
  12. var args = cont.slice(1);
  13.  
  14.  
  15. if (msg.startsWith(prefix + 'HELP')) {
  16. message.channel.send("Hai")
  17. }
  18.  
  19.  
  20.  
  21. });
  22.  
  23. bot.on('ready', () => {
  24. //.
  25. console.log(`${bot.user.username} is ingelogd`)
  26. });
  27.  
  28. bot.login(botconfig.token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement