kk
This commit is contained in:
parent
2d67e04263
commit
2750d2a520
@ -67,13 +67,16 @@ module.exports = function(){
|
|||||||
},
|
},
|
||||||
action : (bot,event,message)=>{
|
action : (bot,event,message)=>{
|
||||||
var ids = message.text.replace('.','').split('\n');
|
var ids = message.text.replace('.','').split('\n');
|
||||||
|
console.log(ids);
|
||||||
return db.get_v(event.chat.id).then(res =>{
|
return db.get_v(event.chat.id).then(res =>{
|
||||||
if(res){
|
if(res){
|
||||||
return db.set_v(event.chat.id,res.concat(ids)).then(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"})
|
return event.reply("Added ids to Tracking.", {"parse_mode":"Markdown"})
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
return db.set_v(event.chat.id, ids).then(res=>{
|
return db.set_v(event.chat.id, ids).then(res=>{
|
||||||
|
console.log(res)
|
||||||
return event.reply("Added ids to Tracking.", {"parse_mode":"Markdown"});
|
return event.reply("Added ids to Tracking.", {"parse_mode":"Markdown"});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user