aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-21 19:53:55 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-21 19:53:55 -0400
commit11ce1c5226c6f73836bf130d453f12401f061819 (patch)
treea9de48c81b76f5357e79eb6555fd4191cd2f4f25 /commands
parentd7542ba73a4f13994114334efa40348892c10d4e (diff)
downloadPokeBot-11ce1c5226c6f73836bf130d453f12401f061819.tar.gz
PokeBot-11ce1c5226c6f73836bf130d453f12401f061819.tar.bz2
PokeBot-11ce1c5226c6f73836bf130d453f12401f061819.zip
fix
Diffstat (limited to 'commands')
-rw-r--r--commands/Owners Only/triggeregg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/Owners Only/triggeregg.js b/commands/Owners Only/triggeregg.js
index e99b1b3..8e0ee63 100644
--- a/commands/Owners Only/triggeregg.js
+++ b/commands/Owners Only/triggeregg.js
@@ -27,8 +27,8 @@ exports.run = async (bot, msg) => {
msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** First two people to type egg gets to battle! *Someone needs to battle for it though...*');
}
else {
- const gym = msg.guild.channels.find('id', '417138941880434699').children.random().name;
- msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** *Someone needs to battle for it though...* Go to <#' + gym + '> to get it. In 5 minutes, the person holding the gym gets the egg!');
+ const gym = msg.guild.channels.find('id', '417138941880434699').children.random();
+ msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** *Someone needs to battle for it though...* Go to <#' + gym.id + '> to get it. In 5 minutes, the person holding the gym gets the egg!');
}
}
};