Hunger Games, Anagram

This commit is contained in:
Daniel Odendahl Jr
2017-10-17 20:43:59 +00:00
parent 5ed18c160f
commit 14d40726b1
15 changed files with 1437 additions and 55 deletions
+3 -5
View File
@@ -1,4 +1,5 @@
const { Command } = require('discord.js-commando');
const { verify } = require('../../util/Util');
module.exports = class HackbanCommand extends Command {
constructor(client) {
@@ -40,11 +41,8 @@ module.exports = class HackbanCommand extends Command {
return msg.say('Could not resolve user.');
}
await msg.say(`Are you sure you want to hackban ${user.tag} (${user.id})?`);
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
max: 1,
time: 30000
});
if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.');
const verification = await verify(msg.channel, msg.author);
if (!verification) return msg.say('Aborting.');
try {
await msg.guild.ban(id, {
days: 7,