Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.on('message', message => {
- if (!message.content.startsWith(prefix) || message.author.bot) return;
- const args = message.content.slice(prefix.length).split(' ');
- const command = args.shift().toLowerCase();
- if (command === "setchannel") {
- message.channel.send("<:white_check_mark:580854146631073792> Successful!");
- myObject.push(`${args}`);
- }
- })
- bot.on('ready', () => {
- console.log(`Logged in as ${bot.user.tag}!`);
- bot.user.setActivity('you!', { type: 'WATCHING' });
- var testChannel = bot.channels.find(channel => myObject.includes(channel.id));
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement