ready
This commit is contained in:
parent
a16a7858d6
commit
229c31e867
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue