init wiki
This commit is contained in:
parent
451dadfc41
commit
b3427a2885
@ -30,6 +30,7 @@ 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 ${message.text_arg}:\n`;
|
let txt = `*Definitions of ${message.text_arg}:\n`;
|
||||||
|
|
||||||
for(let r of res.definitions){
|
for(let r of res.definitions){
|
||||||
|
@ -40,7 +40,6 @@ var verify_word = function verify_word(word) {
|
|||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
reject({ info: 'word does not exist' });
|
reject({ info: 'word does not exist' });
|
||||||
} else {
|
} else {
|
||||||
console.log(data)
|
|
||||||
resolve(data[0].title);
|
resolve(data[0].title);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user