https://github.com/enzonic-llc/emi
Emi the discord bot.
https://github.com/enzonic-llc/emi
ai api bot chatbot chatbot-application discord enzonic open openwebui webui
Last synced: 2 months ago
JSON representation
Emi the discord bot.
- Host: GitHub
- URL: https://github.com/enzonic-llc/emi
- Owner: enzonic-llc
- License: mit
- Created: 2025-07-06T17:30:49.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T19:55:35.000Z (6 months ago)
- Last Synced: 2025-07-10T05:10:45.274Z (6 months ago)
- Topics: ai, api, bot, chatbot, chatbot-application, discord, enzonic, open, openwebui, webui
- Language: Python
- Homepage: https://emi.enzonic.com
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord Bot with OpenWebUI AI Integration
This is a Discord bot that uses the OpenWebUI API to generate responses to chat messages.
## Prerequisites
- Python 3.7+
- Discord bot token with Message Content Intent enabled
- OpenWebUI API key
## Setup
1. Clone this repository or download the files.
2. Create a new `.env` file based on the provided template:
```
DISCORD_TOKEN=your_discord_bot_token_here
OPENWEBUI_API_URL=http://localhost:3000/api/chat/completions
OPENWEBUI_API_KEY=your_openwebui_api_key_here
MODEL_ID=your_model_id_here
STATUS_MESSAGE=Online and ready to chat!
CHANNEL_ID=your_channel_id_here
```
3. Edit the `system_prompt.txt` file with your desired system prompt, or use the default:
```
You are a helpful assistant.
```
4. Install the required dependencies:
```
pip install -r requirements.txt
```
5. Run the bot:
```
python bot.py
```
## Customization
You 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`.
## License
This project is open source. See the LICENSE file for details.