The command exited with code 0. Output: bot.action(/^BUY_PLAN_(\w+)_(\d+)$/, async (ctx) => { ctx.answerCbQuery().catch(() => { }); const planType = ctx.match[1]; const amount = parseInt(ctx.match[2]); const userId = ctx.from.id; let plans = []; try { const fs = require('fs'); plans = JSON.parse(fs.readFileSync(__dirname + '/plans.json', 'utf8')); } catch(e) { plans = []; } let planLabel = planType.charAt(0).toUpperCase() + planType.slice(1); const matchedPlan = plans.find(p => p.type === planType); if (matchedPlan) planLabel = matchedPlan.label.replace(' 💎', ''); console.log(`[PAYMENT] User ${userId} selected ${planLabel} Plan (₹${amount})`);