Added more moderation commands and upgraded the 'audio' command

This commit is contained in:
ION606
2022-07-12 20:10:35 +03:00
parent 6ceb8cb381
commit 5a17e3811f
16 changed files with 881 additions and 114 deletions
+11 -1
View File
@@ -3,6 +3,13 @@ const { log, SEVCODES } = require('../log.js');
const { checkRole } = require('./verify.js');
function modHelp() {
const l = ['lock', 'unlock', 'kick', 'ban', 'unban', 'mute', 'unmute'];
return l.join(", ");
}
function kick(guild, user) {
guild.members.kick(user);
}
@@ -134,4 +141,7 @@ function moderation_handler(bot, message, args, command) {
}
}
module.exports = { moderation_handler }
module.exports = {
name: 'moderation',
moderation_handler, modHelp
}