This commit is contained in:
Lamp 2018-08-10 18:59:45 -07:00
parent a16a7858d6
commit 229c31e867
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 3 additions and 4 deletions

View File

@ -97,12 +97,11 @@ commands.color = {
exec: async function (message) { exec: async function (message) {
var str = message.txt(1); var str = message.txt(1);
if (!str) return false; if (!str) return false;
var role = colorRoles.get(message.member); var role = message.member.roles.find(role => role.name.startsWith('['));
if (!role) { if (!role) {
if (message.author.presence.status == "offline") if (message.author.presence.status == "offline")
message.reply([ return message.reply([
"You are invisible.", "You are offline.",
"I can't see you.",
"I can't change your color when you're invisible." "I can't change your color when you're invisible."
].random()); ].random());
else await colorRoles.update(message.member); else await colorRoles.update(message.member);