The command exited with code 0. Output: bot.on('text', async (ctx) => { const userId = ctx.chat.id; const text = ctx.message.text.trim(); if (text.startsWith('/')) return; // Plain text admin commands: addcredit and addplan without slash if (/^addcredit\s+/i.test(text)) { const isOwner = await isUserAdmin(userId); if (isOwner) { const parts = text.split(/\s+/).filter(Boolean); if (parts.length >= 3) { const targetUserId = parseInt(parts[1]); const creditsToAdd = parseInt(parts[2]); if (!isNaN(targetUserId) && !isNaN(creditsToAdd)) { try { if (!process.env.DATABASE_URL) { let db = {}; if (fs.existsSync('db.json')) { try { db = JSON.parse(fs.readFileSync('db.json', 'utf8')); } catch (e) {} } if (!db[targetUserId]) db[targetUserId] = { name: 'User', credits: 0 }; db[targetUserId].credits = (db[targetUserId].credits || 0) + creditsToAdd; fs.writeFileSync('db.json', JSON.stringify(db, null, 2));