Go away error

This commit is contained in:
dragonfire535
2017-03-11 20:01:52 -05:00
parent b82c2f0dcb
commit b9ac761b66
+1 -1
View File
@@ -19,7 +19,7 @@ class YodaCommand extends commando.Command {
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
let yodaspeak = message.content.split(" ").slice(1).join("+");
let yodaspeak = message.content.split(" ").slice(1).join(" ");
if(yodaspeak === "") {
message.channel.sendMessage(':x: Error! Nothing to translate!');
} else {