diff --git a/config.js b/config.js index ef08c67..48b1073 100644 --- a/config.js +++ b/config.js @@ -28,7 +28,7 @@ module.exports = function(){ }); }, action : (bot,event,message)=>{ - if(message.text_args){ + if(message.text_args && message.text_args.length >0){ return dic(message.text_arg).then(res=>{ let txt = `*Definitions of ${res.word}:*\n\n`; if(res.definitions.length ==0){