mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Split Checks in Many Commands
This commit is contained in:
@@ -23,7 +23,7 @@ class PirateCommand extends commando.Command {
|
||||
if(messagecontent === "") {
|
||||
message.channel.sendMessage(":x: Error! Nothing to translate!");
|
||||
} else {
|
||||
message.channel.sendMessage(pirate);
|
||||
message.channel.sendMessage(pirate, {split:{maxLength:1900}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class RomajiCommand extends commando.Command {
|
||||
let romajify = message.content.split(" ").slice(1).join(" ");
|
||||
if(hepburn.containsKana(romajify)) {
|
||||
let romajified = hepburn.fromKana(romajify);
|
||||
message.channel.sendMessage(romajified);
|
||||
message.channel.sendMessage(romajified, {split:{maxLength:1900}});
|
||||
} else {
|
||||
message.channel.sendMessage(":x: Error! Message contains no Kana!\n:notepad_spiral: Note: You cannot use this command on Kanji!");
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ 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}});
|
||||
message.channel.sendMessage(zalgoified, {split:{maxLength:1900}});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user