Advertisement
Templuzy

index.js

Feb 2nd, 2021 (edited)
78
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. client.commands = new Discord.Collection();
  8. client.events = new Discord.Collection();
  9.  
  10. client.once('ready', () => {
  11.     console.log('Ready.')
  12.     setInterval(() => {
  13.         const statuses = [
  14.             `hmb help`,
  15.             `BURGERZZZZ`,
  16.         ]
  17.  
  18.         const status = statuses[Math.floor(Math.random() * statuses.length)]
  19.         client.user.setActivity(status, { type: "WATCHING"})
  20.     }, 5000)
  21. })
  22.  
  23. ['command_handler', 'event_handler'].forEach(handler =>{
  24.     require(`./handlers/${handler}`)(client, Discord);
  25. });
  26.  
  27.  
  28.  
  29. client.login('inrqebb.reUBXXUgihNXO.ueojtbrejkIEXBOXAuBVbxewueXBUBEWGX)');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement