2
0
This commit is contained in:
Cedric Hoelzl 2019-10-21 14:55:17 +02:00
parent 2e13203ece
commit 03984a8a9e

View File

@ -98,7 +98,7 @@ function gen_kb(bot, p_en, parr,lang){
let ctmr = ntmr[k]; let ctmr = ntmr[k];
if(ctmr.sub){ if(ctmr.sub){
let str = ctmr.desc[lang]; let str = ctmr.desc[lang];
kb.push(bot.mkcb(str,cbt.sel,k)); k[0].push(bot.mkcb(str,cbt.sel,k));
}else if(ctmr.tmr){ }else if(ctmr.tmr){
let str = ctmr.desc[lang]; let str = ctmr.desc[lang];
let c = parr.join("_") + "_" + k.toString(); let c = parr.join("_") + "_" + k.toString();
@ -119,11 +119,6 @@ function gen_kb(bot, p_en, parr,lang){
return kb; return kb;
} }
// let bot ={
// mkcb:(x,y,z)=>{return y+"_"+z}
// }
// console.log(gen_kb(bot,["atrium"],["atrium"],0))
module.exports = function(arr){ module.exports = function(arr){
this.arr = arr; this.arr = arr;
@ -184,7 +179,7 @@ module.exports = function(arr){
}); });
}, },
action : (bot,event,data)=>{ action : (bot,event,data)=>{
return event.editMessageText("Running timer of "+data+" minutes !", {"parse_mode":"Markdown"}); return event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"});
wait(parseInt(data)).then((res)=>{ wait(parseInt(data)).then((res)=>{
return event.reply("Times Up !"); return event.reply("Times Up !");
}).catch(err=>{ }).catch(err=>{