diff --git a/config.js b/config.js index 36bba94..44e29f5 100644 --- a/config.js +++ b/config.js @@ -30,10 +30,10 @@ 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`; + let txt = `*Definitions of ${res.word}:*\n\n`; for(let r of res.definitions){ + txt+= `*${r.speech}:*\n`; for(let l of r.lines){ txt+= `_${l.define}_\n`; }