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