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 quick access to all administrative functions.
👨💼 Admin Panel
Select an action:
[📊 Statistics] [👥 Users]
[📢 Broadcast] [🔧 System]
[📝 Logs] [⚙️ Settings]
/stats
Displays comprehensive bot statistics:
- Total users
- Active subscriptions
- Validators monitored
- Messages sent
- System uptime
- Database size
/broadcast <message>
Send a message to all bot users. Use with caution!
/broadcast 🔧 Maintenance scheduled for tonight at 00:00 UTC
/ban <user_id>
Ban a user from using the bot.
/ban 123456789
/unban <user_id>
Remove a ban and restore user access.
/unban 123456789
Admin Panel Navigation
📊 Statistics Section
- Overview: Key metrics at a glance
- Users: User growth and activity
- Validators: Most monitored validators
- Performance: Response times and resource usage
👥 Users Section
- User List: Browse all users
- Search: Find users by ID or username
- Actions: Ban, unban, or message users
- Subscriptions: View user's monitored validators
🔧 System Section
- Monitoring Status: Start/stop monitoring
- Cache Management: Clear caches
- Database: Maintenance operations
- Logs: View recent logs
Best Practices
Regular Monitoring
- Check
/statsdaily 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
Getting Help
Documentation
- This admin guide
- Technical documentation
- Troubleshooting guide
Support Channels
- Development team contact
- GitHub issues (if applicable)
- Internal team chat
Next Steps
- Learn about configuration options
- Set up deployment
Remember: With great power comes great responsibility. Use admin features wisely!
Built with ❤️ by htw.tech