aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-22 15:54:12 -0400
committerAlee <alee14498@gmail.com>2018-04-22 15:54:12 -0400
commit872776a4f8270d1a57aba6391c9e175558b96b64 (patch)
treeadae42772da143320ac6f8d9e503a6cf3c0565a5
parent33fb1126935e6a8d8b192a315cce523c7b8213ad (diff)
downloadPokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.tar.gz
PokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.tar.bz2
PokeBot-872776a4f8270d1a57aba6391c9e175558b96b64.zip
Client not defined... great job it's suppose to be bot..
-rw-r--r--bot.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot.js b/bot.js
index d13f106..0bc043d 100644
--- a/bot.js
+++ b/bot.js
@@ -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) {