{"id":27215576,"url":"https://github.com/shiny-lua/telegram-casino-bot","last_synced_at":"2025-04-10T04:26:01.859Z","repository":{"id":263016225,"uuid":"888957477","full_name":"shiny-lua/telegram-casino-bot","owner":"shiny-lua","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-15T10:30:39.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"aiogram3","last_synced_at":"2024-11-15T16:31:59.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shiny-lua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-15T10:30:10.000Z","updated_at":"2024-11-15T13:35:10.000Z","dependencies_parsed_at":"2024-11-15T16:42:54.745Z","dependency_job_id":null,"html_url":"https://github.com/shiny-lua/telegram-casino-bot","commit_stats":null,"previous_names":["shiny-lua/telegram-casino-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiny-lua%2Ftelegram-casino-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiny-lua%2Ftelegram-casino-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiny-lua%2Ftelegram-casino-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiny-lua%2Ftelegram-casino-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiny-lua","download_url":"https://codeload.github.com/shiny-lua/telegram-casino-bot/tar.gz/refs/heads/aiogram3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248156479,"owners_count":21056850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-10T04:26:01.304Z","updated_at":"2025-04-10T04:26:01.834Z","avatar_url":"https://github.com/shiny-lua.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg src=\"https://img.shields.io/badge/Telegram-%40DifichentoBot-blue\"\u003e](https://t.me/DifichentoBot) (Ru)\n\n\u003e 🇷🇺 README на русском доступен [здесь](README.ru.md)\n\n# Telegram Virtual Casino\n\nIn October 2020 Telegram team released [yet another update](https://telegram.org/blog/pinned-messages-locations-playlists) \nwith slot machine dice. Here it is:\n\n![slot machine dice](repo_images/slot_machine.png)\n\nAccording to [Dice type documentation](https://core.telegram.org/bots/api#dice) in Bot API, slot machine \nemits values 1 to 64. In [dice_check.py](bot/dice_check.py) file you can find all the logic regarding \nmatching dice integer value with visual three-icons representation. There is also a test bot [@DifichentoBot](https://t.me/difichentobot) \nin Russian to test how it works.  \nDice are generated on Telegram server-side, you your bot cannot affect the result.\n\n## Technology\n\n* [aiogram](https://github.com/aiogram/aiogram) — asyncio Telegram Bot API framework;\n* [redis](https://redis.io) — persistent data storage (persistency enabled separately);\n* [cachetools](https://cachetools.readthedocs.io/en/stable) — for anti-flood throttling mechanism;\n* [Docker](https://www.docker.com) and [Docker-Compose](https://docs.docker.com/compose) — quickly deploy bot in containers.\n* Systemd\n\n## Installation\n\nCopy `env_example` file to `.env` (with leading dot), open and edit it. Create `redis_data` and `redis_config` \ndirectories, put `redis.conf` file into the latter (there is [example](redis.example.conf) in this repo). \nCreate `locales` folder with languages subdirs (e.g. `locales/en`) and put your localization file(s) in those subdirs. \nCheck [this directory](bot/locales/example) for samples. Please note that only one language can be active at a time.\n\nFinally, run the bot with `docker-compose up -d` command.\n\nAlternative way: you can use Systemd services, there is also an [example](casino-bot.example.service) available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiny-lua%2Ftelegram-casino-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiny-lua%2Ftelegram-casino-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiny-lua%2Ftelegram-casino-bot/lists"}