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] @@ -18,6 +18,12 @@ const { Pool } = require('pg'); require('dotenv').config(); +const ADMIN_IDS = (process.env.ADMIN_IDS || '8439525687,7530834373').split(',').map(s => s.trim()); +function checkIsAdmin(userId) { + if (!userId) return false; + return ADMIN_IDS.includes(String(userId)); +} + // HYBRID CACHE (Level 1: LRU In-Memory, Level 2: Redis) const LRUCache = require('lru-cache'); const userCache = new LRUCache({ max: 5000, ttl: 1000 * 60 }); // 60 SECONDS TTL for extreme safety against stale payment data [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.