From fe54dc26c004c889a27ebbb547ade6d3cb584c88 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 9 Jun 2017 17:13:01 +0000 Subject: [PATCH] 30 Second Wait in Mod Commands --- commands/moderation/ban.js | 2 +- commands/moderation/kick.js | 2 +- commands/moderation/softban.js | 2 +- commands/moderation/unban.js | 2 +- commands/moderation/warn.js | 2 +- package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 10df6555..b93fe4f6 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -39,7 +39,7 @@ module.exports = class BanCommand extends Command { await msg.say(`Are you sure you want to ban ${member.user.tag} (${member.id})?`); const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, { max: 1, - time: 15000 + time: 30000 }); if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); try { diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 2f71f765..f1f5d86c 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -39,7 +39,7 @@ module.exports = class KickCommand extends Command { await msg.say(`Are you sure you want to kick ${member.user.tag} (${member.id})?`); const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, { max: 1, - time: 15000 + time: 30000 }); if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); try { diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 38e5e2ca..77dbc8b4 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -39,7 +39,7 @@ module.exports = class SoftbanCommand extends Command { await msg.say(`Are you sure you want to softban ${member.user.tag} (${member.id})?`); const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, { max: 1, - time: 15000 + time: 30000 }); if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); try { diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 03f82634..a77876aa 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -41,7 +41,7 @@ module.exports = class UnbanCommand extends Command { await msg.say(`Are you sure you want to unban ${member.tag} (${member.id})?`); const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, { max: 1, - time: 15000 + time: 30000 }); if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); await msg.guild.unban(member, `${msg.author.tag}: ${reason}`); diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index e3b5bf72..05d1a1c2 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -37,7 +37,7 @@ module.exports = class WarnCommand extends Command { await msg.say(`Are you sure you want to warn ${member.user.tag} (${member.id})?`); const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, { max: 1, - time: 15000 + time: 30000 }); if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); try { diff --git a/package.json b/package.json index b08e688d..e5d702f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "22.1.6", + "version": "22.1.7", "description": "A Discord Bot", "main": "Shard.js", "scripts": {