From 2750d2a520d0a6999747127af6300e34fd9f1834 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Wed, 1 Jul 2020 11:25:44 +0200 Subject: [PATCH] kk --- config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.js b/config.js index fdef920..5d034e6 100644 --- a/config.js +++ b/config.js @@ -67,13 +67,16 @@ module.exports = function(){ }, action : (bot,event,message)=>{ var ids = message.text.replace('.','').split('\n'); + console.log(ids); return db.get_v(event.chat.id).then(res =>{ if(res){ return db.set_v(event.chat.id,res.concat(ids)).then(res=>{ + console.log(res) return event.reply("Added ids to Tracking.", {"parse_mode":"Markdown"}) }); }else{ return db.set_v(event.chat.id, ids).then(res=>{ + console.log(res) return event.reply("Added ids to Tracking.", {"parse_mode":"Markdown"}); }); }