From b3427a28858860862eed6aca8a232cc204a17daf Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Tue, 15 Oct 2019 21:47:06 +0200 Subject: [PATCH] init wiki --- config.js | 1 + wiktionary.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js b/config.js index deb4a65..36bba94 100644 --- a/config.js +++ b/config.js @@ -30,6 +30,7 @@ module.exports = function(){ action : (bot,event,message)=>{ return dic(message.text_arg).then(res=>{ + console.log(res) let txt = `*Definitions of ${message.text_arg}:\n`; for(let r of res.definitions){ diff --git a/wiktionary.js b/wiktionary.js index ce77de2..3c74ed0 100644 --- a/wiktionary.js +++ b/wiktionary.js @@ -40,7 +40,6 @@ var verify_word = function verify_word(word) { if (data.length == 0) { reject({ info: 'word does not exist' }); } else { - console.log(data) resolve(data[0].title); } });