diff options
| author | Alee <alee14498@gmail.com> | 2018-04-22 15:54:12 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-22 15:54:12 -0400 |
| commit | 872776a4f8270d1a57aba6391c9e175558b96b64 (patch) | |
| tree | adae42772da143320ac6f8d9e503a6cf3c0565a5 /bot.js | |
| parent | 33fb1126935e6a8d8b192a315cce523c7b8213ad (diff) | |
| download | PokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.tar.gz PokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.tar.bz2 PokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.zip | |
Client not defined... great job it's suppose to be bot..
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -101,11 +101,11 @@ rl.on('line', function(cmd){ var args = cmd.split(" "); switch(args[0]) { case "guilds": - if (client.guilds.size === 0) { + if (bot.guilds.size === 0) { console.log(('[!] No guilds found.')); } else { console.log('[i] Here\'s the servers that AleeBot is connected to:') - for ([id, guild] of client.guilds) { + for ([id, guild] of bot.guilds) { console.log(` Guild Name: ${guild.name} - ID: ${guild.id}`); } } @@ -114,7 +114,7 @@ rl.on('line', function(cmd){ if (!args[1]) { console.log('[!] Please insert the guild\'s ID.'); } else { - var guild = client.guilds.get(args[1]); + var guild = bot.guilds.get(args[1]); guild.leave(); } break; @@ -124,7 +124,7 @@ rl.on('line', function(cmd){ } else { let broadcast = args.join(" ").slice(48); var guild = null; - guild = client.guilds.get(args[1]); + guild = bot.guilds.get(args[1]); var channel = null; channel = guild.channels.get(args[2]) if (channel != null) { |
