From 99a651245ecf8ab6d1f73c851bd21b57c7cf8ddd Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 22 Apr 2018 18:22:11 -0400 Subject: Whee new command --- bot_discord.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bot_discord.js b/bot_discord.js index b4cb86d..be290cb 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -97,6 +97,17 @@ rl.on('line', function(cmd){ } } break; + case "channels": + if (!args[1]) { + console.log('[!] Please insert the guild\'s ID.') + } else { + var guild = client.guilds.get(args[1]); + console.log('[i] Here\'s the channels that this guild have:') + for ([id, channel, guild] of guild && client.channels) { + console.log(` Channel: #${channel.name} - ID: ${channel.id}`); + } + } + break; case "leave": if (!args[1]) { console.log('[!] Please insert the guild\'s ID.'); @@ -139,6 +150,7 @@ rl.on('line', function(cmd){ case "help": var msg = (`AleeBot `+ settings.abVersion +` Console Help\n\n`); msg += (`guilds - Shows all guilds that AleeBot's on.\n`) + msg += (`channels - Shows all the channels that the guilds have.\n`) msg += (`leave - Leaves a guild.\n`) msg += (`broadcast - Broadcasts a message to a server.\n`) msg += (`uptime - Shows the uptime for AleeBot.\n`) -- cgit v1.2.3