{"id":25011367,"url":"https://github.com/potlock/socialgraph-invite-telegrambot","last_synced_at":"2025-03-30T03:16:30.670Z","repository":{"id":272004643,"uuid":"915240672","full_name":"PotLock/socialgraph-invite-telegrambot","owner":"PotLock","description":"Algorithim for using poll based governance to generate invite link for specific members. ","archived":false,"fork":false,"pushed_at":"2025-01-11T10:57:58.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-05T05:34:17.300Z","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/PotLock.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":"2025-01-11T10:36:28.000Z","updated_at":"2025-01-11T10:58:01.000Z","dependencies_parsed_at":"2025-01-11T11:39:25.155Z","dependency_job_id":"06634e70-cc27-4bd4-87e1-51815e68c79c","html_url":"https://github.com/PotLock/socialgraph-invite-telegrambot","commit_stats":null,"previous_names":["potlock/socialgraph-invite-telegrambot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotLock%2Fsocialgraph-invite-telegrambot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotLock%2Fsocialgraph-invite-telegrambot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotLock%2Fsocialgraph-invite-telegrambot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotLock%2Fsocialgraph-invite-telegrambot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotLock","download_url":"https://codeload.github.com/PotLock/socialgraph-invite-telegrambot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269928,"owners_count":20750321,"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-02-05T05:31:10.550Z","updated_at":"2025-03-30T03:16:30.651Z","avatar_url":"https://github.com/PotLock.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Builder Voting Bot\n\nThis is a Telegram bot for managing builder proposals and votes. It allows users to propose builders with input for forms and their telegram handle, entire group vote for or against them, and generate invite links based on voting results.\n\n## Features\n\n- **Propose Builders**: Users can propose builders for voting.\n- **Voting System**: Users can vote for or against proposed builders.\n- **Invite Links**: Generate invite links for builders with sufficient votes.\n- **Daily Reset**: Automatically resets daily stats and removes old proposals.\n\n## Setup\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/yourusername/builder-voting-bot.git\n   cd builder-voting-bot\n   ```\n\n2. **Install Dependencies**:\n   Ensure you have Python and pip installed, then run:\n   ```bash\n   pip install pyTelegramBotAPI\n   ```\n\n3. **Configure the Bot**:\n   - Set your Telegram bot token in an environment variable or configuration file.\n   - Adjust the database name and proposal limits in the configuration.\n\n4. **Run the Bot**:\n   ```bash\n   python invite.py\n   ```\n\n## Usage\n\n- **/propose_builder [name]**: Propose a new builder for voting.\n- **/generate_invite**: Generate an invite link for builders with enough votes.\n- **/increment_daily_count**: Increment the daily proposal count.\n\n## Improvements\n\n- Securely store the API token.\n- Add error handling and logging.\n- Organize code into modules.\n- Use a configuration file for settings.\n- Implement unit tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Environment Setup\n\nThis project requires a Telegram bot token to function. You can set this up by creating a `.env.local` file in the root directory of the project.\n\n### Steps to Set Up\n\n1. Create a file named `.env.local` in the root directory.\n2. Add the following line to the file:\n\n   ```plaintext\n   TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here\n   ```\n\n   Replace `your_telegram_bot_token_here` with your actual Telegram bot token.\n\n3. Ensure that your environment can read from the `.env.local` file. This is typically handled by your development environment or deployment setup.\n\n### Running the Bot\n\nOnce the environment is set up, you can run the bot using:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotlock%2Fsocialgraph-invite-telegrambot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotlock%2Fsocialgraph-invite-telegrambot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotlock%2Fsocialgraph-invite-telegrambot/lists"}