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) {
var str = message.txt(1);
if (!str) return false;
var role = colorRoles.get(message.member);
var role = message.member.roles.find(role => role.name.startsWith('['));
if (!role) {
if (message.author.presence.status == "offline")
message.reply([
"You are invisible.",
"I can't see you.",
return message.reply([
"You are offline.",
"I can't change your color when you're invisible."
].random());
else await colorRoles.update(message.member);