{"id":18598660,"url":"https://github.com/yamnikov-oleg/pythontalk_gatebot","last_synced_at":"2025-05-16T14:12:22.580Z","repository":{"id":44865345,"uuid":"173978383","full_name":"yamnikov-oleg/pythontalk_gatebot","owner":"yamnikov-oleg","description":"A Telegram bot, guarding the @python_talk group","archived":false,"fork":false,"pushed_at":"2023-02-11T00:20:42.000Z","size":102,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T14:12:22.403Z","etag":null,"topics":["bot","telegram-bot"],"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/yamnikov-oleg.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":"2019-03-05T16:07:17.000Z","updated_at":"2022-07-09T09:41:17.000Z","dependencies_parsed_at":"2024-11-07T01:41:29.047Z","dependency_job_id":"edd6cea8-ba04-4661-8658-af96450dac66","html_url":"https://github.com/yamnikov-oleg/pythontalk_gatebot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamnikov-oleg%2Fpythontalk_gatebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamnikov-oleg%2Fpythontalk_gatebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamnikov-oleg%2Fpythontalk_gatebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamnikov-oleg%2Fpythontalk_gatebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yamnikov-oleg","download_url":"https://codeload.github.com/yamnikov-oleg/pythontalk_gatebot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544158,"owners_count":22088808,"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":["bot","telegram-bot"],"created_at":"2024-11-07T01:33:42.859Z","updated_at":"2025-05-16T14:12:22.552Z","avatar_url":"https://github.com/yamnikov-oleg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Talk Gate Bot\n\nTelegram bot used for @python_talk group to quiz new members on basic Python knowledge before letting them chat.\n\n## Installation\n\nThe bot requires Python of version 3.6 or higher.\n\n1. Create a virtual environment and activate it:\n   ```\n   $ virtualenv -p python3 venv\n   $ source ./venv/bin/activate\n   ```\n2. Install all the requirements:\n   ```\n   $ pip install -r requirements.txt\n   ```\n3. Configure the bot accordingly (see \"Configuration\" section).\n4. Apply migrations:\n   ```\n   $ alembic upgrade head\n   ```\n5. Run the bot:\n   ```\n   $ ./run.py\n   ```\n\n## Configuration\n\nBot's configuration is located in the `config` directory:\n\n* `base.py` - default configuration.\n* `test.py` - test configuration, used when running tests.\n\nPlease, do not edit these files, unless you're developing the bot.\n\nTo configure the bot on deployment, create a new file `local.py` in this directory with the following contents:\n\n```python\nfrom .base import BaseConfig\n\n\nclass LocalConfig(BaseConfig):\n    BOT_TOKEN = ''\n```\n\nFill in `BOT_TOKEN` variable. You can overwrite any other variable available in `base.BaseConfig` if needed.\n\n`local.py` is already included in `.gitignore`.\n\n## Development commands\n\n* Run tests:\n  ```\n  $ pytest\n  ```\n* Auto-generate a new migration:\n  ```\n  $ alembic revision --autogenerate -m \"You migration message\"\n  ```\n  Make sure you have the latest version of DB schema before generating new migrations.\n* Run IPython shell with DB session and bot models in scope:\n  ```\n  $ ./shell.py\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamnikov-oleg%2Fpythontalk_gatebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyamnikov-oleg%2Fpythontalk_gatebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamnikov-oleg%2Fpythontalk_gatebot/lists"}