https://github.com/barabum0/shell-bot
A Telegram bot to run preset commands in shell
https://github.com/barabum0/shell-bot
aiogram python shell telegram
Last synced: 12 months ago
JSON representation
A Telegram bot to run preset commands in shell
- Host: GitHub
- URL: https://github.com/barabum0/shell-bot
- Owner: barabum0
- License: mit
- Created: 2023-11-14T13:40:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T16:02:53.000Z (about 2 years ago)
- Last Synced: 2025-04-05T03:02:12.561Z (about 1 year ago)
- Topics: aiogram, python, shell, telegram
- Language: Python
- Homepage:
- Size: 5.4 MB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShellBot




[](https://github.com/psf/black)
[](https://github.com/psf/black)
[](https://mypy-lang.org/)
## About 🤖
ShellBot is a Telegram bot designed to run commands in a shell environment. It allows users to execute predefined shell commands through a Telegram interface, making it a versatile tool for remote command execution.
## Installation 🛠️
To install ShellBot, install it with [`pipx`](https://github.com/pypa/pipx?tab=readme-ov-file):
```bash
pipx install git+https://github.com/barabum0/shell-bot@pipx
```
## Usage 🚀
1. Create a `config.json` or `config.yaml` file based on the `config_example.json` or `config_example.yaml`. The bot can read both formats.
2. Add your Telegram bot token and other configuration details to the file.
3. Run the bot using:
```bash
shellbot
```
By default, it will use the `config.json` file, but you can specify another file with:
```bash
shellbot --config config1.yaml
```
## Troubleshooting 🔍
If you encounter any issues while using ShellBot, please check the [GitHub Issues](https://github.com/barabum0/shell-bot/issues) page for similar problems or to open a new issue.
## Contribution 🤝
Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.
## License 📄
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.