mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
More Split Fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user