From cdbe6f0cd8abf0916ecd0ea8890af14224d3d56d Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 3 Mar 2017 18:26:03 -0500 Subject: [PATCH] Split Checks in Many Commands --- commands/textedit/pirate.js | 2 +- commands/textedit/romaji.js | 2 +- commands/textedit/zalgo.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/textedit/pirate.js b/commands/textedit/pirate.js index 426c6bc1..4ddc184c 100644 --- a/commands/textedit/pirate.js +++ b/commands/textedit/pirate.js @@ -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}}); } } } diff --git a/commands/textedit/romaji.js b/commands/textedit/romaji.js index 1c180984..549d79c3 100644 --- a/commands/textedit/romaji.js +++ b/commands/textedit/romaji.js @@ -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!"); } diff --git a/commands/textedit/zalgo.js b/commands/textedit/zalgo.js index fbafdad4..1534c5a4 100644 --- a/commands/textedit/zalgo.js +++ b/commands/textedit/zalgo.js @@ -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}}); } }