mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Falsey check in Zalgo
This commit is contained in:
@@ -19,7 +19,11 @@ class ZalgoCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
console.log("[Command] " + message.content);
|
console.log("[Command] " + message.content);
|
||||||
let zalgoified = zalgo(message.content.split(" ").slice(1).join(" "));
|
let zalgoified = zalgo(message.content.split(" ").slice(1).join(" "));
|
||||||
message.channel.sendMessage(zalgoified, {split:{maxLength:1900}});
|
if(zalgoified === '') {
|
||||||
|
message.channel.sendMessage(":x: Error! Nothing to zalgoify!");
|
||||||
|
} else {
|
||||||
|
message.channel.sendMessage(zalgoified, {split:{maxLength:1900}});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user