This commit is contained in:
Lamp 2018-08-10 18:46:33 -07:00
parent 4315c773a3
commit a16a7858d6
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 6 additions and 6 deletions

View File

@ -99,13 +99,13 @@ commands.color = {
if (!str) return false;
var role = colorRoles.get(message.member);
if (!role) {
if (message.author.presence.status == "invisible")
if (message.author.presence.status == "offline")
message.reply([
"You are invisible.",
"I can't change your color when you're invisible.",
"How can I change your color if I can't see you?",
"You are invisible.",
"I can't see you.",
"I can't change your color when you're invisible."
].random());
else await colorRoles.ensure(message.member);
else await colorRoles.update(message.member);
}
role.setColor(str.toUpperCase());
message.react("🆗");
@ -121,7 +121,7 @@ commands.title = {
if (!str) return false;
if (str == "none") str = "";
if (str.length > 98) str = str.substr(0,97) + '…';
var role = colorRoles.get(message.member);
var role = message.member.roles.find(role => role.name.startsWith('['));
role.setName(`[${str}]`);
message.react("🆗");
}