mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +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);
|
||||
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