|
|
|
@ -27,7 +27,8 @@ module.exports = { |
|
|
|
|
} else {tu.statusclearmode = 'manual';} |
|
|
|
|
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}afk [clearMode] <reason>\``);} |
|
|
|
|
let reason = args.join(" "); |
|
|
|
|
if (reason.length > 150) {return message.reply("That status a bit long; keep it under 150 characters.");} |
|
|
|
|
if (reason.length > 150) {return message.channel.send("That status a bit long; keep it under 150 characters.");} |
|
|
|
|
if (reason.match(/<@&\d+>|@everyone/gm)) {return message.channel.send("I won't ping any roles or @ everyone!");} |
|
|
|
|
tu.statustype = 'dnd'; |
|
|
|
|
tu.statusmsg = reason.trim(); |
|
|
|
|
tu.statussetat = new Date(); |
|
|
|
|