Drop Reply in most cases

This commit is contained in:
dragonfire535
2017-03-03 12:19:13 -05:00
parent d6ad30caf9
commit bb9a8b3e0d
42 changed files with 83 additions and 83 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ class UrbanDictionary extends commando.Command {
let wordtodefine = message.content.split(" ").slice(1).join(" ");
urban(wordtodefine).first(function(json) {
if(json === undefined) {
message.reply(":x: Error! Word not found!");
message.channel.sendMessage(":x: Error! Word not found!");
} else if(json.definition === '') {
message.reply(":x: Error! Word has no definition!");
message.channel.sendMessage(":x: Error! Word has no definition!");
} else if(json.example === '') {
message.channel.sendMessage("**Definition:**\n" + json.definition, {split:{maxLength:1900}});
} else {