Skip to content

Th3Kanashii/telegram-virtual-casino-bot

Repository files navigation

🎰️ Virtual Casino in Telegram 📱

Telegram Bot

Virtual Casino is a transparent casino based on animated Telegram emoji. A bot was created for the demonstration @BaacharuKajino

System dependencies

  • Python 3.11+
  • Docker
  • docker-compose
  • make
  • poetry

Deployment

  1. Clone the repository:

    git clone https://github.com/Th3Kanashii/telegram-virtual-casino-bot.git
  2. Rename .env.dist to .env and configure it:

    Rename the .env.dist file to .env and specify the necessary parameters for the bot to work.

  3. Build the application and run the bot:

    Execute the following commands:

    make app-build
    make app-run

Development

Setup environment

poetry install

Update database tables structure

Make migration script:

make migration message=MESSAGE_WHAT_THE_MIGRATION_DOES rev_id=ID_MIGRATION

Run migrations:

make migrate

Update locales

  1. Parse new used localization keys to update locales files (make i18n locale=TRANSLATION_LOCALE)
  2. Write new locales in .ftl files by translations/TRANSLATION_LOCALE
  3. Restart the bot

Used technologies