OmenFusionAi_Bot Documentation
Documentation for OmenFusionAi_Bot AI Assistant
Project maintained by Amul-Thantharate
Hosted on GitHub Pages — Theme by mattgraham
Setup Guide
Learn how to set up and deploy OmenFusionAi_Bot.
Table of Contents
- Quick Start
- Prerequisites
- Required Environment Variables
- Optional API Keys
- Installation Steps
- Configuration
- Environment Variables
- Required Variables
- Optional Variables
- Security Notes
- Server Requirements
- Minimum Requirements
- Recommended Requirements
- Deployment
- Local Development
- Production Deployment
- Docker Deployment
- Maintenance
- Regular Tasks
- Troubleshooting
- Security Best Practices
- API Key Management
- Bot Security
- Data Protection
Quick Start
Prerequisites
- Python 3.8+
- pip (Python package manager)
- Git
- A Telegram account
- A bot token from @BotFather
Required Environment Variables
Create a .env file in the root directory with these variables:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
ROOT_PASSWORD=your_admin_password
ADMIN_USER_ID=your_admin_telegram_id
Optional API Keys
Users can set these directly through the bot:
- Groq API Key (
/setgroqapi) - Get from Groq
- Replicate API Key (
/setreplicateapi) - Get from Replicate
Installation Steps
- Clone the repository:
git clone https://github.com/yourusername/OmenFusionAi_Bot.git
cd OmenFusionAi_Bot
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
# Edit .env with your actual values
- Run the bot:
Configuration
Environment Variables
Required Variables
TELEGRAM_BOT_TOKEN: Your Telegram bot token from BotFather
ROOT_PASSWORD: Password for admin operations
ADMIN_USER_ID: Your Telegram user ID for admin access
Optional Variables
These can be set by users through bot commands:
- Groq API Key: Set via
/setgroqapi
- Replicate API Key: Set via
/setreplicateapi
Security Notes
- API keys are stored in memory only
- Keys are not persisted between bot restarts
- Messages containing API keys are automatically deleted
- Admin commands are protected by user ID verification
Server Requirements
Minimum Requirements
- 1GB RAM
- Python 3.8+
- Stable internet connection
- 1GB free disk space
Recommended Requirements
- 2GB RAM
- Python 3.10+
- High-speed internet connection
- 2GB free disk space
- SSL certificate (for production)
Deployment
Local Development
- Follow the Quick Start guide
- Use development environment variables
- Run with debug logging enabled
Production Deployment
- Set up a production server
- Configure SSL certificates
- Use production environment variables
- Set up logging
- Configure automatic restarts
Docker Deployment
Coming soon!
Maintenance
Regular Tasks
- Monitor log files
- Check disk usage
- Update dependencies
- Backup configuration
Troubleshooting
- Check log files for errors
- Verify environment variables
- Ensure API keys are valid
- Check network connectivity
Security Best Practices
API Key Management
- Never share API keys
- Use bot commands to set keys
- Regularly rotate keys
- Monitor for unauthorized usage
Bot Security
- Keep Python updated
- Update dependencies regularly
- Monitor bot activity
- Use strong admin password
Data Protection
- No persistent storage of API keys
- Automatic message deletion for sensitive data
- Session data cleared on restart
- Secure environment variable handling