This commit is contained in:
Cedric Hoelzl 2020-07-14 13:40:26 +02:00
parent 19fa7c172c
commit 4cfe8cd325

View File

@ -146,7 +146,7 @@ module.exports = function(){
kb.push([bot.mkcb_close("Close"),bot.mkcb("Delete","del","")]); kb.push([bot.mkcb_close("Close"),bot.mkcb("Delete","del","")]);
var new_ids = []; var new_ids = [];
if(message.text_arg && message.text_arg.length >0){ if(message.text_arg && message.text_arg.length >0){
new_ids = message.text_args.replace('.','').replace(',','\n').replace(' ','\n').split('\n'); new_ids = message.text_arg.replace('.','').replace(',','\n').replace(' ','\n').split('\n');
} }
return db.get_v(event.chat.id).then(res =>{ return db.get_v(event.chat.id).then(res =>{
var ids = res.concat(new_ids); var ids = res.concat(new_ids);