Advertisement
NICHOLASAW

Auto React Bot.js

May 25th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //you must download use npm i discord.js on your terminal
  2. const Discord = require("discord.js");
  3. const client = new Discord.Client();
  4.  
  5. //ready message
  6. client.on("ready", () => {
  7.     console.log(`${client.user.username} is Ready`);
  8. });
  9.  
  10. //commands
  11. {
  12.     client.on("message", async message => {
  13.         if (message.channel.id === "channel-id") {
  14.             await message.react("βœ…")
  15.             await message.react("❌")
  16.             await message.react("🀷")
  17.             await message.react("πŸ€”")
  18.         };
  19.     });
  20. };
  21.  
  22. //login
  23. client.login("bot-token-goes-here");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement