Split Checks in Many Commands

This commit is contained in:
dragonfire535
2017-03-03 18:26:03 -05:00
parent f12399c774
commit cdbe6f0cd8
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class PirateCommand extends commando.Command {
if(messagecontent === "") { if(messagecontent === "") {
message.channel.sendMessage(":x: Error! Nothing to translate!"); message.channel.sendMessage(":x: Error! Nothing to translate!");
} else { } else {
message.channel.sendMessage(pirate); message.channel.sendMessage(pirate, {split:{maxLength:1900}});
} }
} }
} }
+1 -1
View File
@@ -21,7 +21,7 @@ class RomajiCommand extends commando.Command {
let romajify = message.content.split(" ").slice(1).join(" "); let romajify = message.content.split(" ").slice(1).join(" ");
if(hepburn.containsKana(romajify)) { if(hepburn.containsKana(romajify)) {
let romajified = hepburn.fromKana(romajify); let romajified = hepburn.fromKana(romajify);
message.channel.sendMessage(romajified); message.channel.sendMessage(romajified, {split:{maxLength:1900}});
} else { } else {
message.channel.sendMessage(":x: Error! Message contains no Kana!\n:notepad_spiral: Note: You cannot use this command on Kanji!"); message.channel.sendMessage(":x: Error! Message contains no Kana!\n:notepad_spiral: Note: You cannot use this command on Kanji!");
} }
+1 -1
View File
@@ -19,7 +19,7 @@ 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}}); message.channel.sendMessage(zalgoified, {split:{maxLength:1900}});
} }
} }