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 "user language"
Currently supported languages: Russian, English, Ukrainian
PDF manipulations
work in progress :)
Tests
To run the tests use:
poetry run pytest -v -s -n auto
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_token>
or .env file:
cat suskabot/config/.env.example >> suskabot/config/.env
echo <your_token> >> suskabot/config/.env
Other environment variables are optional and can be set using your text editor of choice.
Beware, no configurations from .env.example will be read!
-
Start the app:
poetry run python -m suskabot
Docker
Build the image yourself:
git clone https://gitlab.com/vinyl_summer/suskabot.git && cd suskabot
docker build -t suskabot .
docker run -d --env=TG_BOT_API_TOKEN=<your_token> suskabot
Or use one from the gitlab registry:
docker run -d --env=TG_BOT_API_TOKEN=<your_token> registry.gitlab.com/vinyl_summer/suskabot
Demo
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.2.1.tar.gz.
File metadata
- Download URL: suskabot-0.2.1.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.9 Linux/5.15.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77263c9ec9f186a8dade403ebdf1fa2461b8982d6f1f8e3730aa56c86fdc45d1
|
|
| MD5 |
933387178ea9022b31ff9580341717c1
|
|
| BLAKE2b-256 |
851714ed83b6e24f866688bc3d36defc4fd56dd6699711affa848a7a23190dd8
|
File details
Details for the file suskabot-0.2.1-py3-none-any.whl.
File metadata
- Download URL: suskabot-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.9 Linux/5.15.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb1952dd3773b6aac8c5b1042fb4d599dd2106bac36bbe2b61b6bfc6f8edd93
|
|
| MD5 |
76807b072278154e2132a1456b066b29
|
|
| BLAKE2b-256 |
c15c4b1f861c6e7c0bdb9103cf55dc9fcdf885a072a191cfad4fd1d3fe65e30d
|