{"id":13640142,"url":"https://github.com/MasterGroosha/telegram-casino-bot","last_synced_at":"2025-04-20T02:32:41.332Z","repository":{"id":43077473,"uuid":"311942115","full_name":"MasterGroosha/telegram-casino-bot","owner":"MasterGroosha","description":"Demo bot to show slot machine dice 🎰 on Telegram","archived":false,"fork":false,"pushed_at":"2025-02-21T01:01:32.000Z","size":82,"stargazers_count":178,"open_issues_count":0,"forks_count":43,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-21T02:19:24.934Z","etag":null,"topics":["aiogram3","bot","casino","dice","game","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://t.me/DifichentoBot","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/MasterGroosha.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":"2020-11-11T10:51:41.000Z","updated_at":"2025-02-21T01:01:37.000Z","dependencies_parsed_at":"2024-01-14T12:08:22.550Z","dependency_job_id":"6bc09c05-1551-4545-ac28-46733e3a47c6","html_url":"https://github.com/MasterGroosha/telegram-casino-bot","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Ftelegram-casino-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Ftelegram-casino-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Ftelegram-casino-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Ftelegram-casino-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasterGroosha","download_url":"https://codeload.github.com/MasterGroosha/telegram-casino-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249840687,"owners_count":21332925,"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":["aiogram3","bot","casino","dice","game","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-08-02T01:01:08.335Z","updated_at":"2025-04-20T02:32:41.044Z","avatar_url":"https://github.com/MasterGroosha.png","language":"Python","funding_links":[],"categories":["Bots"],"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\n## Credits to\n\n* [@Tishka17](https://t.me/Tishka17) for initial inspiration\n* [@svinerus](https://t.me/svinerus) for compact dice combination check (f6f42a841d3c1778f0e32)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasterGroosha%2Ftelegram-casino-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMasterGroosha%2Ftelegram-casino-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasterGroosha%2Ftelegram-casino-bot/lists"}