SudoBot is a powerful Telegram Bot that allows users to execute commands, retrieve system information, check IP details, and manage system processes—all from Telegram.
- ✅ Command Execution: Run shell commands remotely.
- 🌍 IP Information: Fetch local and public IP addresses.
- 🖥️ System Monitoring: Get system details and disk usage.
- 📜 Menu Integration: Access bot features via a built-in menu.
- 🔑 Sudo Support: Securely run commands as superuser.
- 🛠️ Systemd Service Support: Run the bot as a background system service.
git clone https://github.com/yourusername/yourbot.git
cd yourbotIt's recommended to use a virtual environment for dependency isolation.
pip3 install virtualenv- For Linux/macOS:
virtualenv venv source venv/bin/activate - For Windows:
virtualenv venv venv\Scripts\activate
deactivatepip3 install -r requirements.txtpip3 install --upgrade -r requirements.txtpip3 freeze > requirements.txtcp .env.example .envBOT_TOKEN=your_telegram_bot_token- Get your
BOT_TOKENfrom BotFather on Telegram.
python3 main.pynohup python3 main.py > bot.log 2>&1 &pkill -f main.pypython3 -m unittest discover tests
python3 -m unittest discover tests/botpython3 -m unittest tests.test_menuSimply run the following script to install the bot as a systemd service:
bash install_service.sh- This script will automatically configure and start the bot on boot.
This project is licensed under the GNU General Public License v3.0 (GPLv3).
You can read the full license text in the LICENSE file or at GNU’s official site.
Pull requests are welcome!
Feel free to fork the repo and submit your changes.
- Telegram: Shohag
- GitHub: yourusername/yourbot
🔥 Developed with ❤️ by Shohag
This version emphasizes that the only step needed for systemd service installation is running the install.sh script. Let me know if you'd like any further adjustments! 🚀