{"id":26796323,"url":"https://github.com/simonemoreware/telegram-name-drawer-bot","last_synced_at":"2025-03-29T18:18:18.125Z","repository":{"id":260657032,"uuid":"881974606","full_name":"SimoneMoreWare/telegram-name-drawer-bot","owner":"SimoneMoreWare","description":"A simple Telegram bot that allows users to draw a name randomly from a predefined list. Each user can draw only once, simulating a lottery or drawing from an urn.","archived":false,"fork":false,"pushed_at":"2024-11-01T16:14:15.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-01T17:17:18.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/SimoneMoreWare.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-01T16:00:37.000Z","updated_at":"2024-11-01T16:14:19.000Z","dependencies_parsed_at":"2024-11-01T17:17:25.626Z","dependency_job_id":"d466b177-de79-47c0-8c83-48e87735715e","html_url":"https://github.com/SimoneMoreWare/telegram-name-drawer-bot","commit_stats":null,"previous_names":["simonemoreware/telegram-name-drawer-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimoneMoreWare%2Ftelegram-name-drawer-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimoneMoreWare%2Ftelegram-name-drawer-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimoneMoreWare%2Ftelegram-name-drawer-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimoneMoreWare%2Ftelegram-name-drawer-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimoneMoreWare","download_url":"https://codeload.github.com/SimoneMoreWare/telegram-name-drawer-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223308,"owners_count":20743168,"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-03-29T18:18:17.649Z","updated_at":"2025-03-29T18:18:18.116Z","avatar_url":"https://github.com/SimoneMoreWare.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Telegram Name Drawer Bot\n========================\n\nA simple Telegram bot that allows users to draw a name randomly from a predefined list. Each user can draw only once, simulating a lottery or drawing from an urn.\n\n![wallPaper](https://github.com/SimoneMoreWare/telegram-name-drawer-bot/blob/main/wallpaper.jpg)\n\nFeatures\n--------\n\n*   Users can start a conversation and draw a name.\n*   Each user can only draw once.\n*   Provides feedback if there are no more names left to draw.\n*   Management of restrictions, allowing users to specify who they cannot draw.\n*   Support for generic names: User IDs are not directly visible in the codebase to maintain privacy.\n\nRequirements\n------------\n\n*   Python 3.6 or higher\n*   An active Telegram account\n*   A Telegram bot token (obtained from [BotFather](https://core.telegram.org/bots#botfather))\n\nInstallation\n------------\n\n1.  Clone the repository:\n    \n        git clone https://github.com/your-username/telegram-name-drawer-bot.git\n        cd telegram-name-drawer-bot\n    \n2.  Install the required packages:\n    \n        pip install -r requirements.txt\n    \n3.  Obtain your bot token from [BotFather](https://core.telegram.org/bots#botfather) and replace `YOUR_TELEGRAM_TOKEN` in the `bot.py` file with your actual bot token.\n\nUsage\n-----\n\n1.  Run the bot:\n    \n        python bot.py\n    \n2.  Open Telegram and search for your bot using its username.\n3.  Start a conversation with your bot by sending the command `/start`.\n4.  To draw a name, send the command `/draw`.\n\nGlobal Variables\n----------------\n\n*   `TELEGRAM_TOKEN`: The token provided by BotFather. Replace the placeholder with your actual token.\n*   `names`: A list of names from which the bot can randomly draw. Modify this list to change the available names.\n*   `drawn_users`: A dictionary that tracks users who have already drawn a name. This ensures each user can draw only once.\n*   `restrictions`: A JSON file containing the restrictions for each user, specifying who they cannot draw.\n\nContributing\n------------\n\nFeel free to contribute by opening issues or submitting pull requests. Your feedback and contributions are welcome!\n\nLicense\n-------\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonemoreware%2Ftelegram-name-drawer-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonemoreware%2Ftelegram-name-drawer-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonemoreware%2Ftelegram-name-drawer-bot/lists"}