diff --git a/config.js b/config.js index 1f1a2fd..70b426e 100644 --- a/config.js +++ b/config.js @@ -70,7 +70,7 @@ const cbt = { function gen_kb(bot, p_en, parr,lang){ let bck_nxt = ""; let bck = ""; - let kb = []; + let kb = [[]]; let ntmr = tmr; for(let k of Object.keys(ntmr)){ if(p_en.indexOf(k.toString()) == -1){ @@ -103,14 +103,14 @@ function gen_kb(bot, p_en, parr,lang){ let str = ctmr.desc[lang]; let c = parr.join("_") + "_" + k.toString(); - kb.push(bot.mkcb(str,cbt.sel,c)); + kb[0].push(bot.mkcb(str,cbt.sel,c)); } } if(ntmr.tmr){ for(let i in ntmr.tmr){ let v = ntmr.tmr[i]; let str = ntmr.tmr_str[i]; - kb.push(bot.mkcb(str,cbt.run,v)) + kb[0].push(bot.mkcb(str,cbt.run,v)) } } }