status bugs

master
Kit Kasune 4 years ago
parent 1fbff8e470
commit a6f02ef620
  1. 3
      commands/afk.js
  2. 1
      commands/dnd.js

@ -18,7 +18,8 @@ module.exports = {
if (['m', 'manual', 'a', 'auto'].includes(args[0])) {
tu.statusclearmode = ['m', 'manual'].includes(args[0]) ? 'manual' : 'auto';
args.shift();
} else {tu.statusclearmode = 'manual';}
} else {tu.statusclearmode = 'auto';}
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.");}
tu.statustype = 'afk';

@ -19,6 +19,7 @@ module.exports = {
tu.statusclearmode = ['m', 'manual'].includes(args[0]) ? 'manual' : 'auto';
args.shift();
} 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.");}
tu.statustype = 'dnd';

Loading…
Cancel
Save