Advertisement
Templuzy

Untitled

Feb 1st, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js')
  2.  
  3. const client = new Discord.Client();
  4.  
  5. const fs = require('fs');
  6.  
  7.  
  8. client.commands = new Discord.Collection();
  9. client.events = new Discord.Collection();
  10.  
  11.  
  12. ['command_handler', 'event_handler'].forEach(handler =>{
  13.     require(`./handlers/${handler}`)(client, Discord);
  14. });
  15.  
  16.  
  17.  
  18. client.once('ready', () => {
  19.     console.log('Ready.')
  20.     //Below Status  
  21.     //Below Auto-Changing Status
  22.     setInterval(() => {
  23.         const statuses = [
  24.             `hmb help`,
  25.             `BURGERZ`,
  26.         ]
  27.  
  28.         const status = statuses[Math.floor(Math.random() * statuses.length)]
  29.         client.user.setActivity(status, { type: "PLAYING"}) // Can Be WATCHING, STREAMING, LISTENING
  30.     }, 5000) // Second You Want to Change Status, This Cahnges Every 2 Seconds
  31. })
  32.    
  33.  
  34. client.login('ODAzMjYwMTMzNzMxNzI5NDI4.YA7MSw._7GsttepAUL_lNmNGv8OWCf8GOs');
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement