telegram bot with various functions
Project description
Suskabot
Telegram Bot that really can do it all!
Current functionality
- Youtube video downloader. Send a link, get a video!
- Translator. Fast translations without the need to specify to and from languages! Configure "default language to translate to" and "mother tongue". Currently supported languages: Russian, English, Ukranian
- TBD: PDF manipulations
Tests
To run the tests use:
poetry run pytest -v -s
Usage
Manual
- Create and activate a new virtual environment
poetry shell
- Install the project requirements
poetry install
- Set the API_TOKEN environment variable using export:
export TG_BOT_API_TOKEN=<your TG bot api token>
or .env.secret:
cd suskabot/config && echo TG_BOT_API_TOKEN=<your TG bot api token >> .env.secret
You can also start the app and .env.secret will be created for you with the key in place. Other environment variables can be conveniently set from .env.public 4) Start the app:
poetry run python suskabot/main.py
Docker
Specify this gitlab repositories container registry or build the image yourself:
docker build -t suskabot .
docker run -d --env=TG_BOT_API_TOKEN=<TG bot api token> suskabot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suskabot-0.1.4.tar.gz.
File metadata
- Download URL: suskabot-0.1.4.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.29-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79da6530750777d6451f61d5fd120b7941117ff392c9c29529ad2f12a93004d2
|
|
| MD5 |
be3562e45b69bca660960db91d804c07
|
|
| BLAKE2b-256 |
76be20dad517652bee5af28786d4273f0fbaa4a3b01647882d3581da12b89aa9
|
File details
Details for the file suskabot-0.1.4-py3-none-any.whl.
File metadata
- Download URL: suskabot-0.1.4-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.29-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b237e271d7d68f3fb87f4d12a117af7c24aae9a5a556c8f89f98d7f7a1791af4
|
|
| MD5 |
1a23d8292e4ccd071f05fd5543ac1427
|
|
| BLAKE2b-256 |
09a8f7a44faef2a5a7d07d66e72315dab789bc46964ee18ff1046f4cd23271b2
|