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~ 927B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. // THIS MUST BE THIS WAY
  37. client.login(process.env.BOT_TOKEN);