Advertisement
Faiintz

Discord.js V12 How to login into the bot

Apr 9th, 2020
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Video 1
  2.  
  3.  
  4. const Discord = require('discord.js');
  5. const bot = new Discord.Client();
  6.  
  7. const TOKEN = 'your token here';
  8.  
  9. const PREFIX = 'your prefix here'
  10.  
  11.  
  12. bot.on('ready', () => {
  13.     console.log('This bot is online!!')
  14.     bot.user.setActivity('Subscribe!!', { type: "PLAYING"})
  15. })
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. bot.login(TOKEN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement