diff --git a/config.js b/config.js index 70b426e..967166e 100644 --- a/config.js +++ b/config.js @@ -98,7 +98,7 @@ function gen_kb(bot, p_en, parr,lang){ let ctmr = ntmr[k]; if(ctmr.sub){ 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){ let str = ctmr.desc[lang]; let c = parr.join("_") + "_" + k.toString(); @@ -119,11 +119,6 @@ function gen_kb(bot, p_en, parr,lang){ return kb; } -// let bot ={ -// mkcb:(x,y,z)=>{return y+"_"+z} -// } -// console.log(gen_kb(bot,["atrium"],["atrium"],0)) - module.exports = function(arr){ this.arr = arr; @@ -184,7 +179,7 @@ module.exports = function(arr){ }); }, 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)=>{ return event.reply("Times Up !"); }).catch(err=>{