From 11ce1c5226c6f73836bf130d453f12401f061819 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 21 Mar 2018 19:53:55 -0400 Subject: fix --- commands/Owners Only/triggeregg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands') 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!'); } } }; -- cgit v1.2.3