diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-21 19:10:30 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-21 19:10:30 -0400 |
| commit | 2cb35cfe49a315df2ea1e9f9d8d5f3d1bc722ce5 (patch) | |
| tree | c8ca26ef9b47b23c93527f5fcad86755526e6344 /commands | |
| parent | d6a86a09c334360c2cdee952a579a9a8b5adad7d (diff) | |
| download | PokeBot-2cb35cfe49a315df2ea1e9f9d8d5f3d1bc722ce5.tar.gz PokeBot-2cb35cfe49a315df2ea1e9f9d8d5f3d1bc722ce5.tar.bz2 PokeBot-2cb35cfe49a315df2ea1e9f9d8d5f3d1bc722ce5.zip | |
yes i didn't work
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Owners Only/triggeregg.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Owners Only/triggeregg.js b/commands/Owners Only/triggeregg.js index b695729..4b4c6f1 100644 --- a/commands/Owners Only/triggeregg.js +++ b/commands/Owners Only/triggeregg.js @@ -27,7 +27,7 @@ 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.filter(channel => channel.type == 'category').find('id', '417149626433404940').children.random().name; + const gym = msg.guild.channels.find('id', '417149626433404940').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!'); } } |
