update modlog thingy

This commit is contained in:
Carol Knieriem 2020-02-04 10:00:42 -05:00
parent fcbd144a1d
commit b86e0b17d6
No known key found for this signature in database
GPG Key ID: 932EC6A6BAEE122B
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
exports.run = async (client, message, args, level) => {
const user = message.mentions.users.first();
parseUser(message, user);
const modlog = client.channels.find('name', 'mod-log');
client.parseUser(message, user);
const modlog = client.channels.find('name', config.modLogChannel);
const caseNum = await caseNumber(client, modlog);
if (!modlog) return message.reply('I cannot find a modlog channel');
if (!modlog) return message.reply('I cannot find a modlog channel.');
if (message.mentions.users.size < 1) return message.reply('You must mention someone to warn them.').catch(console.error);
const reason = args.splice(1, args.length).join(' ') || `Awaiting moderator's input. Use ${message.settings.prefix}reason ${caseNum} <reason>.`;