fix
This commit is contained in:
parent
ce40596ecc
commit
2d46490da5
@ -28,7 +28,7 @@ module.exports = function(){
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
action : (bot,event,message)=>{
|
action : (bot,event,message)=>{
|
||||||
|
if(message.text_args){
|
||||||
return dic(message.text_arg).then(res=>{
|
return dic(message.text_arg).then(res=>{
|
||||||
let txt = `*Definitions of ${res.word}:*\n\n`;
|
let txt = `*Definitions of ${res.word}:*\n\n`;
|
||||||
if(res.definitions.length ==0){
|
if(res.definitions.length ==0){
|
||||||
@ -48,6 +48,9 @@ module.exports = function(){
|
|||||||
//bot.error(err);
|
//bot.error(err);
|
||||||
return event.reply("No word in dictionary");
|
return event.reply("No word in dictionary");
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
return event.reply("No word give");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user