aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Owners Only/triggeregg.js37
1 files changed, 21 insertions, 16 deletions
diff --git a/commands/Owners Only/triggeregg.js b/commands/Owners Only/triggeregg.js
index 472afd9..b695729 100644
--- a/commands/Owners Only/triggeregg.js
+++ b/commands/Owners Only/triggeregg.js
@@ -18,22 +18,27 @@
*
* *************************************/
-exports.run = async (bot, msg, args) => {
- if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) {
- msg.reply('Nope! You need the person who created this bot to use this command.');
+exports.run = async (bot, msg) => {
+ if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) {
+ msg.reply('Nope! You need the person who created this bot to use this command.');
+ }
+ else {
+ if (Math.random() > 0.5) {
+ 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 {
- msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** *Someone needs to battle for it though...*');
+ const gym = msg.guild.channels.filter(channel => channel.type == 'category').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!');
}
- };
-
- exports.conf = {
- aliases: [],
- guildOnly: true,
- };
-
- exports.help = {
- name: 'triggeregg',
- description: 'Sends an egg out for players to collect',
- };
- \ No newline at end of file
+ }
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'triggeregg',
+ description: 'Sends an egg out for players to collect',
+};