More Split Fixes

This commit is contained in:
dragonfire535
2017-03-03 20:11:14 -05:00
parent 77dcad6752
commit 1c3549b933
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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);
}
}
}
}
+1 -1
View File
@@ -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);