Admin Overview
As an administrator of the Somnia Validator Monitor Bot, you have access to powerful management tools and features. This guide covers everything you need to effectively manage the bot and its users.
Admin Capabilities
User Management
- View all registered users and their subscriptions
- Ban/unban users
- Send direct messages to users
- Monitor user activity
System Control
- View system statistics and performance metrics
- Control monitoring services
- Broadcast messages to all users
- Access detailed logs
Monitoring
- Real-time bot health status
- Database statistics
- Performance metrics
- Error tracking
Admin Commands
/admin
Opens the main admin panel with all available options.
🔐 Admin Panel
Select an option:
[📊 Bot Overview]
[👥 Users]
[📈 RPC Performance]
[💾 Manage DB]
[🔍 Find User]
[❌ Close]
/help (for admins)
As an admin, the /help command directly opens the admin panel instead of showing the regular help message.
Note: All administrative functions are accessed through the interactive admin panel. There are no separate commands for individual admin actions.
Admin Panel Navigation
📊 Bot Overview
Shows comprehensive statistics:
- Total users and active subscriptions
- Validators being monitored
- Bot uptime and version
- Memory and CPU usage
- Recent activity metrics
👥 Users
Displays user statistics:
- Total user count
- User growth trends
- Most active users
- Subscription distribution
📈 RPC Performance
Monitors blockchain connection:
- RPC endpoint status
- Response time metrics
- Error rates
- Request volume
💾 Manage DB
Database management options:
- Export database tables in ~.csv format
- Erase database tables
🔍 Find User
Search for specific users:
- Enter Telegram user ID
- View user details
- Check subscriptions
- Send direct message
- Ban/unban functionality
Best Practices
Regular Monitoring
- Check Bot Overview daily for anomalies
- Monitor error logs for issues
- Track user growth trends
- Watch for performance degradation
User Management
- Investigate before banning users
- Document reasons for bans
- Respond to user issues promptly
- Use broadcast sparingly
System Maintenance
- Schedule maintenance during low activity
- Announce maintenance in advance
- Backup database before major changes
- Monitor after updates
Security Considerations
Protecting Admin Access
- Admin IDs are configured in environment variables
- Only trusted team members should be admins
- Regularly review admin list
- Use strong Telegram account security
Handling Sensitive Data
- User data is isolated by design
- Don't share user subscription details publicly
- Be careful with broadcast messages
- Respect user privacy
Emergency Procedures
Bot Unresponsive
- Check server/hosting status
- Review error logs
- Restart bot service
- Check database connectivity
Mass Errors
- Stop monitoring temporarily
- Identify error source
- Fix issue
- Resume monitoring
- Notify affected users
Database Issues
- Stop bot to prevent corruption
- Backup current database
- Run database repairs
- Restore from backup if needed
- Restart bot