aaaaaaaaaaaa

This commit is contained in:
Jan 2020-12-23 13:50:02 +01:00
parent a96e3cbd96
commit 1e1b78e24f

View file

@ -31,7 +31,7 @@ client.on('message', message => {
const cmd = commands.find(cmd => cmd.meta?.name == cmdName || cmd.meta?.aliases?.indexOf(cmdName) > -1);
if (!cmd) return require('./69Reply').execute(message);
logger.info(`[CMD] ${message.author.id} ${message.author.tag} => ${cmdName}, ${args.join(' ')}`);
logger.info(`[CMD] ${message.author.id} ${message.author.tag} => ${cmdName}${args.length > 0 ? ',' : ''} ${args.join(' ')}`);
if (cmd.meta?.staffOnly && !message.member.permissions.has('ADMINISTRATOR')) {
logger.warn(`${message.author.tag} => Refusing to run staff command`);