Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. bot.on('message', message => {
  2. if (!message.content.startsWith(prefix) || message.author.bot) return;
  3. const args = message.content.slice(prefix.length).split(' ');
  4. const command = args.shift().toLowerCase();
  5. if (command === "setchannel") {
  6. message.channel.send("<:white_check_mark:580854146631073792> Successful!");
  7. myObject.push(`${args}`);
  8. }
  9. })
  10.  
  11.  
  12.  
  13. bot.on('ready', () => {
  14. console.log(`Logged in as ${bot.user.tag}!`);
  15. bot.user.setActivity('you!', { type: 'WATCHING' });
  16. var testChannel = bot.channels.find(channel => myObject.includes(channel.id));
  17. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement