SHARE
TWEET

Auto React Bot.js

NICHOLASAW May 25th, 2019 69 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");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top