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]
@@ -2107,6 +2107,8 @@
const expiryStr = user.plan_expires_at ? new Date(user.plan_expires_at).toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' }) : 'Never (No Active Plan)';
const planText = user.plan_type !== 'credits' ? 'βΎοΈ Unlimited Plan' : 'πͺ Pay Per Use (Credits)';
+ const todayStr = getTodayISTDateStr();
+ const freeSearchStr = user.last_free_search_date === todayStr ? 'Used Today β³' : 'Available (1 Free Search) β
';
const statusMsg = `π€ USER DETAILS & STATUS π€\n` +
`ββββββββββββββββββββββββββ\n` +
@@ -2113,6 +2113,7 @@
`β’ Telegram ID: ${user.telegram_id}\n` +
`β’ Thread ID: ${user.thread_id || 'None'}\n` +
`β’ Credits Balance: ${user.credits} Credits ${CREDIT_EMOJI}\n` +
+ `β’ Daily Free Search: ${freeSearchStr}\n` +
`β’ Plan Type: ${planText}\n` +
`β’ Plan Expires: ${expiryStr}\n` +
`β’ Total Searches Run: ${totalSearches} π\n` +
[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.