|
|
@ -302,7 +302,11 @@ export default {
|
|
|
|
const userTag = message.author.username;
|
|
|
|
const userTag = message.author.username;
|
|
|
|
const userID = message.author.id;
|
|
|
|
const userID = message.author.id;
|
|
|
|
|
|
|
|
|
|
|
|
const isOptOut = await db.optout.findOne({ where: { userID: message.author.id } });
|
|
|
|
let isOptOut = await db.optout.findOne({ where: { userID: message.author.id } });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (commandName === 'optout') {
|
|
|
|
|
|
|
|
isOptOut = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const timestamp = new Date();
|
|
|
|
const timestamp = new Date();
|
|
|
|
console.log(`[${timestamp.toISOString()}] \x1b[33m${ isOptOut ? 'A user' : `${userTag} (${userID})`}\x1b[0m launched command \x1b[33m${commandName}\x1b[0m using prefix`);
|
|
|
|
console.log(`[${timestamp.toISOString()}] \x1b[33m${ isOptOut ? 'A user' : `${userTag} (${userID})`}\x1b[0m launched command \x1b[33m${commandName}\x1b[0m using prefix`);
|
|
|
|