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.