The following changes were made by the replace_file_content tool to: /root/aadharbot/modules/commands/profile.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission.
[diff_block_start]
@@ -29,8 +29,10 @@
// Determine User Status
let userStatus = '⚡ Free Member';
- if (access.isAdmin) {
+ if (access.role === 'owner' || access.isOwner) {
userStatus = '👑 VIP Master Owner';
+ } else if (access.role === 'admin' || access.isAdmin) {
+ userStatus = '🛡️ VIP Admin';
} else if (access.isUnlimited) {
userStatus = '💎 VIP Active Member';
} else if (access.credits > 0) {
@@ -38,8 +38,10 @@
// Subscription Status
let subStatus = 'Inactive ⚪ (Pay Per Search)';
- if (access.isAdmin) {
- subStatus = 'Active 🟢 (Master VIP)';
+ if (access.role === 'owner' || access.isOwner) {
+ subStatus = 'Active 🟢 (Master Owner VIP)';
+ } else if (access.role === 'admin' || access.isAdmin) {
+ subStatus = 'Active 🟢 (Admin VIP)';
} else if (access.isUnlimited) {
subStatus = 'Active 🟢';
} else if (access.planExpiresAt && access.planExpiresAt <= new Date()) {
@@ -62,6 +62,9 @@
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n`;
}
+ const roleName = (access.role || (access.isAdmin ? 'admin' : 'user')).toUpperCase();
+ const roleBadge = roleName === 'OWNER' ? '👑 OWNER' : (roleName === 'ADMIN' ? '🛡️ ADMIN' : '👤 USER');
+
const profMsg = `USER PROFILE & ACCOUNT DETAILS\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`Name: ${ctx.from.first_name || 'User'}\n` +
@@ -68,5 +68,7 @@
`User ID: ${userId}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
+ `Account Role: ${roleBadge}\n` +
+ `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`User Status: ${userStatus}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`Total Searches Done: ${totalSearches} Searches\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.