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] @@ -26,9 +26,15 @@ // ── MODULAR ADMIN SYSTEM ─────────────────────────────────────────────── const { + ROLES, + OWNER_ID, ADMIN_IDS, + checkIsOwner, checkIsAdmin, + getUserRole: getUserRoleRaw, + isUserOwner: isUserOwnerRaw, isUserAdmin: isUserAdminRaw, + setUserRole: setUserRoleRaw, assignPlanToUser: assignPlanToUserRaw, parsePlanDurationDays, initAdminModule, @@ -41,7 +41,10 @@ triggerFreeModeBroadcast: triggerFreeModeBroadcastRaw } = require('./admin'); +const getUserRole = (userId) => getUserRoleRaw(userId, pool); +const isUserOwner = (userId) => isUserOwnerRaw(userId, pool); const isUserAdmin = (userId) => isUserAdminRaw(userId, pool); +const setUserRole = (targetUserId, newRole) => setUserRoleRaw(targetUserId, newRole, pool, invalidateUserCache); const assignPlanToUser = (targetUserId, planDuration, paymentMethod, amount) => assignPlanToUserRaw(targetUserId, planDuration, paymentMethod, amount, pool, invalidateUserCache); const startDailyResetBroadcast = (manualTriggered = false) => startDailyResetBroadcastRaw(bot, pool, manualTriggered, redisClient); const triggerFreeModeBroadcast = (durationText) => triggerFreeModeBroadcastRaw(bot, pool, durationText); [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.