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 yourbot
It'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
deactivate
pip3 install -r requirements.txt
pip3 install --upgrade -r requirements.txt
pip3 freeze > requirements.txt
cp .env.example .env
BOT_TOKEN=your_telegram_bot_token
- Get your
BOT_TOKEN
from BotFather on Telegram.
python3 main.py
nohup python3 main.py > bot.log 2>&1 &
pkill -f main.py
python3 -m unittest discover tests
python3 -m unittest discover tests/bot
python3 -m unittest tests.test_menu
Simply 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! π