The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -1592,12 +1592,11 @@ }); } - // The 'access' variable is already fetched via Promise.all at the top of this function. - const required = serviceType === 'RETRIEVE_SMS' ? 80 : - serviceType === 'EID_TO_PDF' ? 100 : 120; + // 1 Search = 1 Credit for all services + const required = 1; const hasSuffCredits = access.isUnlimited || access.credits >= required; - console.log(`[DEBUG] startService userId=${userId}, isUnlimited=${access.isUnlimited}, credits=${access.credits}, hasSuffCredits=${hasSuffCredits}, hasAccess=${access.hasAccess}, plan_type from DB?`); + console.log(`[DEBUG] startService userId=${userId}, isUnlimited=${access.isUnlimited}, credits=${access.credits}, hasSuffCredits=${hasSuffCredits}, hasAccess=${access.hasAccess}`); if (!access.hasAccess || !hasSuffCredits) { if (ctx.callbackQuery) { @@ -1609,13 +1609,13 @@ `👤 Session Info:\n` + `â€ĸ User: ${firstName}\n` + `â€ĸ ID: ${userId}\n` + - `â€ĸ Balance: ₹0 💰 (No Active Plan)\n\n` + - `
âš ī¸ Access Limit / Limit Restricted:\n` + - `Aapke paas active balance nahi hain. Aage ki services use karne ke liye balance khareedein (balance khareedo tabhi access hoga).\n\n` + - `(You do not have enough balance. Please add funds or a subscription plan to proceed.)
\n\n` + + `â€ĸ Balance: ${access.credits || 0} Credits đŸĒ™\n\n` + + `
âš ī¸ Access Limit / Limit Restricted:\n` + + `Aapke paas active credits nahi hain. Aage search karne ke liye credits khareedein (Cost: 1 Credit per search).\n\n` + + `(You do not have enough credits. Please add funds or a subscription plan to proceed.)
\n\n` + `🎁 Daily Free Limit / ā¤ĄāĨ‡ā¤˛āĨ€ ā¤ĢāĨā¤°āĨ€ ⤞ā¤ŋā¤Žā¤ŋ⤟:\n` + - `
Har user ko daily 1 Aadhaar search (₹120) bilkul free di jati hai, jo har raat 12:00 AM IST ko reset ho jati hai!\n\n` + - `Aapka balance har midnight reset hokar exact ₹120 ho jata hai (non-accumulative).
\n` + + `
Har user ko daily 1 Aadhaar search (1 Credit) bilkul free di jati hai, jo har raat 12:00 AM IST ko reset ho jati hai!\n\n` + + `Aapka balance har midnight reset hokar exact 1 Credit ho jata hai (non-accumulative).
\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `💎 Dev: @EverythingBypass`; [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.