{"id":29551295,"url":"https://github.com/enzonic-llc/emi","last_synced_at":"2026-05-14T21:03:52.960Z","repository":{"id":303864201,"uuid":"1014931946","full_name":"enzonic-llc/emi","owner":"enzonic-llc","description":"Emi the discord bot.","archived":false,"fork":false,"pushed_at":"2025-07-09T19:55:35.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T12:25:53.750Z","etag":null,"topics":["ai","api","bot","chatbot","chatbot-application","discord","enzonic","open","openwebui","webui"],"latest_commit_sha":null,"homepage":"https://emi.enzonic.com","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/enzonic-llc.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,"zenodo":null}},"created_at":"2025-07-06T17:30:49.000Z","updated_at":"2025-07-09T19:59:46.000Z","dependencies_parsed_at":"2025-07-10T05:12:56.629Z","dependency_job_id":"a836f6ba-7f34-4ff3-bbf1-ac87f261709d","html_url":"https://github.com/enzonic-llc/emi","commit_stats":null,"previous_names":["enzonic-llc/emi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/enzonic-llc/emi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzonic-llc%2Femi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzonic-llc%2Femi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzonic-llc%2Femi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzonic-llc%2Femi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzonic-llc","download_url":"https://codeload.github.com/enzonic-llc/emi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzonic-llc%2Femi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","api","bot","chatbot","chatbot-application","discord","enzonic","open","openwebui","webui"],"created_at":"2025-07-18T04:02:33.293Z","updated_at":"2026-05-14T21:03:52.928Z","avatar_url":"https://github.com/enzonic-llc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Bot with OpenWebUI AI Integration\r\n\r\nThis is a Discord bot that uses the OpenWebUI API to generate responses to chat messages.\r\n\r\n## Prerequisites\r\n\r\n- Python 3.7+\r\n- Discord bot token with Message Content Intent enabled\r\n- OpenWebUI API key\r\n\r\n## Setup\r\n\r\n1. Clone this repository or download the files.\r\n2. Create a new `.env` file based on the provided template:\r\n   ```\r\n   DISCORD_TOKEN=your_discord_bot_token_here\r\n\r\n   OPENWEBUI_API_URL=http://localhost:3000/api/chat/completions\r\n\r\n   OPENWEBUI_API_KEY=your_openwebui_api_key_here\r\n\r\n   MODEL_ID=your_model_id_here\r\n\r\n   STATUS_MESSAGE=Online and ready to chat!\r\n\r\n   CHANNEL_ID=your_channel_id_here\r\n   ```\r\n\r\n3. Edit the `system_prompt.txt` file with your desired system prompt, or use the default:\r\n   ```\r\n   You are a helpful assistant.\r\n   ```\r\n\r\n4. Install the required dependencies:\r\n   ```\r\n   pip install -r requirements.txt\r\n   ```\r\n\r\n5. Run the bot:\r\n   ```\r\n   python bot.py\r\n   ```\r\n\r\n## Customization\r\n\r\nYou can customize the bot's behavior by modifying the `bot.py` file, particularly the `get_chat_response` function and the message handling in `on_message`.\r\n\r\n## License\r\n\r\nThis project is open source. See the LICENSE file for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzonic-llc%2Femi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzonic-llc%2Femi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzonic-llc%2Femi/lists"}