2
0
This commit is contained in:
sora 2019-10-23 11:23:30 +02:00
parent ce40596ecc
commit 2d46490da5

View File

@ -28,7 +28,7 @@ module.exports = function(){
});
},
action : (bot,event,message)=>{
if(message.text_args){
return dic(message.text_arg).then(res=>{
let txt = `*Definitions of ${res.word}:*\n\n`;
if(res.definitions.length ==0){
@ -48,6 +48,9 @@ module.exports = function(){
//bot.error(err);
return event.reply("No word in dictionary");
})
}else{
return event.reply("No word give");
}
}
},
],