mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Hunger Games, Anagram
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user