fix
This commit is contained in:
parent
cfa1853ae6
commit
78bafb7e4b
@ -28,7 +28,7 @@ module.exports = function(){
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
action : (bot,event,message)=>{
|
action : (bot,event,message)=>{
|
||||||
if(message.text_args && message.text_args.length >0){
|
if(message.text_arg && message.text_arg.length >0){
|
||||||
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){
|
||||||
@ -49,7 +49,7 @@ module.exports = function(){
|
|||||||
return event.reply("No word in dictionary");
|
return event.reply("No word in dictionary");
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
return event.reply("No word give");
|
return event.reply("No word given");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user