mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Drop Reply in most cases
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user