init wiki
This commit is contained in:
parent
b3427a2885
commit
c76c5a7c79
@ -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`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user