From 1c3549b933002696398dc0937ef94c1e5b6d2d69 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 3 Mar 2017 20:11:14 -0500 Subject: [PATCH] More Split Fixes --- commands/textedit/pirate.js | 6 +++++- commands/textedit/romaji.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/textedit/pirate.js b/commands/textedit/pirate.js index 6774b094..c0fc70f1 100644 --- a/commands/textedit/pirate.js +++ b/commands/textedit/pirate.js @@ -23,7 +23,11 @@ class PirateCommand extends commando.Command { if(messagecontent === "") { message.channel.sendMessage(":x: Error! Nothing to translate!"); } else { - message.channel.sendMessage(pirate, {split:true}); + if(pirate.length > 1950) { + message.channel.sendMessage(":x: Error! Your message is too long!"); + } else { + message.channel.sendMessage(pirate); + } } } } diff --git a/commands/textedit/romaji.js b/commands/textedit/romaji.js index 6a2e605f..f87ad2c7 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); - if(romajified.length > 1900) { + if(romajified.length > 1950) { message.channel.sendMessage(":x: Error! Your message is too long!"); } else { message.channel.sendMessage(romajified);