From cfa1853ae62d92425392293da9f9ceed39d31ad5 Mon Sep 17 00:00:00 2001 From: sora Date: Wed, 23 Oct 2019 21:10:21 +0200 Subject: [PATCH] fix --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){