30 Second Wait in Mod Commands

This commit is contained in:
Daniel Odendahl Jr
2017-06-09 17:13:01 +00:00
parent 300411824d
commit fe54dc26c0
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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}`);
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "22.1.6",
"version": "22.1.7",
"description": "A Discord Bot",
"main": "Shard.js",
"scripts": {