Skip to main content

telegram bot with various functions

Project description

Suskabot

Telegram Bot that really can do it all!

PyPi package

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

  1. Get the project:

    git clone https://gitlab.com/vinyl_summer/suskabot.git && cd suskabot
    
  2. Create and activate a new virtual environment

    poetry shell
    
  3. Install the project requirements

    poetry install
    
  4. 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!

  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suskabot-0.2.3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

suskabot-0.2.3-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file suskabot-0.2.3.tar.gz.

File metadata

  • Download URL: suskabot-0.2.3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.154+

File hashes

Hashes for suskabot-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8c3f7873dcdb6c7709f966fdf4df0eb70da5d33e7a87f75ebcf6a4a92341b3bd
MD5 f92c99e55dc436565b549bce91569035
BLAKE2b-256 9bcf7eadf20cf66365f7a0b23cee39c98be772cf56706ac14bc2180e20531922

See more details on using hashes here.

File details

Details for the file suskabot-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: suskabot-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.154+

File hashes

Hashes for suskabot-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4c023b9ebf79dabc0d313bac50776a0213c3455b09d9ffbfeda462e17137ee
MD5 e674d1affb79ef88bc3e553f99d58b74
BLAKE2b-256 4b0be9b790fe509439a47e54ea863d03fc3e2ea24ed7b022e1495b2b3666bcbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page