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]
@@ -3621,10 +3621,16 @@
const access = await checkUserAccess(userId);
let leftCredits = access.credits;
- if (!access.isUnlimited) {
- leftCredits = await deductUserCredit(userId, 1);
- } else {
+ let chargedDesc = '';
+ if (access.isUnlimited) {
setCooldown(userId, 'RETRIEVE_SMS');
+ chargedDesc = '0 (VIP Pass)';
+ } else if (access.hasFreeSearch) {
+ await markDailyFreeSearchUsed(userId);
+ chargedDesc = '0 (Daily Free Search)';
+ } else {
+ leftCredits = await deductUserCredit(userId, 1);
+ chargedDesc = `1 Credit ${CREDIT_EMOJI}`;
}
const responseMsg = `💳 AADHAAR RETRIEVED 💳\n` +
@@ -3634,7 +3634,7 @@
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`💡 Full unmasked UID has been sent via official SMS.\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
- `💰 Charged: ${access.isUnlimited ? '0 (VIP Pass)' : '1 Credit'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` +
+ `💰 Charged: ${chargedDesc}\n` +
`🪙 Balance: ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`⚡ AADHAAR VIP ENGINE ⚡`;
[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.