init wiki
This commit is contained in:
parent
b3427a2885
commit
c76c5a7c79
@ -30,10 +30,10 @@ module.exports = function(){
|
|||||||
action : (bot,event,message)=>{
|
action : (bot,event,message)=>{
|
||||||
|
|
||||||
return dic(message.text_arg).then(res=>{
|
return dic(message.text_arg).then(res=>{
|
||||||
console.log(res)
|
let txt = `*Definitions of ${res.word}:*\n\n`;
|
||||||
let txt = `*Definitions of ${message.text_arg}:\n`;
|
|
||||||
|
|
||||||
for(let r of res.definitions){
|
for(let r of res.definitions){
|
||||||
|
txt+= `*${r.speech}:*\n`;
|
||||||
for(let l of r.lines){
|
for(let l of r.lines){
|
||||||
txt+= `_${l.define}_\n`;
|
txt+= `_${l.define}_\n`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user