You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bot.js~ 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. const Discord = require('discord.js');
  2. const client = new Discord.Client();
  3. client.on('ready', () => {
  4. console.log('I am ready!');
  5. });
  6. client.on('message', message => {
  7. if (message.content === '!ping') {
  8. message.reply('pong');
  9. }
  10. });
  11. client.on('message', message => {
  12. if (message.content === '!test') {
  13. message.reply('it worked...');
  14. }
  15. });
  16. client.on('message', message => {
  17. if (message.content === '!best girl?') {
  18. message.reply('Big Band...');
  19. }
  20. });
  21. client.on('message', message => {
  22. if (message.content === '!best girl') {
  23. message.reply('Big Band...');
  24. }
  25. });
  26. client.on('message', message => {
  27. if (message.content === '!best grill?') {
  28. message.reply('Big Band...');
  29. }
  30. });
  31. client.on('message', message => {
  32. if (message.content === '!best grill') {
  33. message.reply('Big Band...');
  34. }
  35. });
  36. client.on('message', message => {
  37. if (message.content === '!hi') {
  38. message.reply('hello there, you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md');
  39. }
  40. });
  41. client.on('message', message => {
  42. if (message.content === '!commands') {
  43. message.reply('you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md');
  44. }
  45. });
  46. // THIS MUST BE THIS WAY
  47. client.login(process.env.BOT_TOKEN);