2
0

init wiki

This commit is contained in:
Cedric Hoelzl 2019-10-15 21:49:50 +02:00
parent b3427a2885
commit c76c5a7c79

View File

@ -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`;
}