Commit graph

204 commits

Author SHA1 Message Date
8b1636fbcc
Update ruff config and fix its errors
Some checks are pending
Build Docker Image / docker (push) Waiting to run
2026-03-17 20:32:34 +01:00
bfc37ec99f
Stuff and things 2026-03-17 19:59:02 +01:00
c4cb40da49
Add pre-commit 2026-03-17 19:58:46 +01:00
90ce504dbb
Refactor OpenAI model settings, enhance trigger keywords, and add reset/undo tests 2026-03-17 19:54:11 +01:00
195ca21947
Refactor environment variables and update systemd service configuration for ANewDawn 2026-03-17 19:47:25 +01:00
renovate[bot]
80e0637e8a
Update docker/metadata-action action to v6 (#66)
Some checks are pending
Build Docker Image / docker (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-06 02:07:52 +00:00
renovate[bot]
faa77c38f6
Update docker/build-push-action action to v7 (#65)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-05 23:42:03 +00:00
renovate[bot]
ec325ed178
Update docker/login-action action to v4 (#64)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-04 09:32:11 +00:00
renovate[bot]
0dd877c227
Update actions/checkout action to v6 (#59)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 18:37:12 +01:00
71f29c3467
Refine Docker metadata extraction and build conditions for master branch 2025-12-04 17:45:45 +01:00
Copilot
dcfc76bdc9
Set up Copilot instructions (#63)
Co-authored-by: TheLovinator1 <4153203+TheLovinator1@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-12-04 17:20:34 +01:00
Copilot
5695722ad2
Add undo functionality for /reset command (#61)
Co-authored-by: TheLovinator1 <4153203+TheLovinator1@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Joakim Hellsén <tlovinator@gmail.com>
2025-12-04 02:03:40 +01:00
9738c37aba
MechaHItler 3.0 2025-09-30 05:08:54 +02:00
350af2a3a9 Update actions/checkout to version 5 in Docker publish workflow 2025-09-27 00:50:56 +02:00
10408c2fa7 Add conditional checks for pull request events in Docker metadata extraction and image build steps 2025-09-27 00:47:24 +02:00
1e515a8394 Refine system prompt instructions by removing unnecessary guidance on admitting uncertainty and generating code. 2025-09-26 21:01:18 +02:00
bfdf306d3e Update allowed users list to include 'etherlithium' and reorder existing entries 2025-09-26 21:00:38 +02:00
ddf9e636f4 Add MARK comments for better code organization and readability 2025-09-26 17:43:26 +02:00
2dc200d2f7 Update latency message to display seconds instead of milliseconds 2025-09-26 17:38:57 +02:00
8eb18fc958 Remove humorous day name instruction and clean up reset memory response 2025-09-26 17:36:39 +02:00
2ad0309243 Fix Dockerfile to copy only main.py to the app directory 2025-09-26 03:42:21 +02:00
0d5f28cebe Add sticker instructions and enhance emoji usage guidance in chat 2025-09-26 03:40:51 +02:00
68e74ca6a3 Add Ollama API integration and enhance bot functionality
- Updated .env.example to include OLLAMA_API_KEY.
- Added Ollama to dependencies in pyproject.toml.
- Refactored main.py to incorporate Ollama for web search capabilities.
- Removed misc.py as its functionality has been integrated into main.py.
- Enhanced message handling and memory management for improved performance.
2025-09-26 03:19:22 +02:00
eec1ed4f59 Add conversation memory reset command
Introduces a new /reset command to allow authorized users to reset the conversation memory for a channel. Also adds a new_conversation option to the /ask command to start a fresh conversation, and implements the reset_memory function in misc.py.
2025-09-26 01:06:18 +02:00
75ed597cdd Refactor OpenAI agent settings and enhance system prompt for brevity in responses 2025-09-26 00:29:23 +02:00
a581c03e4e Add message length computation and history compacting for improved message handling 2025-09-23 05:00:21 +02:00
d3ee8903c6 Refactor ask command to improve message handling and add chunked response sending 2025-09-23 05:00:14 +02:00
ca9e4a38b4 Enhance system prompt to clarify memory limitations and channel-specific message recall 2025-09-23 04:48:18 +02:00
740ad95fbd Enhance ask command to improve message memory handling and response fallback 2025-09-23 04:44:02 +02:00
32febd53dc Refactor ask command to improve response handling and authorization checks 2025-09-22 01:44:34 +02:00
88503bc506 Add error handling for response sending in ask command 2025-09-22 01:35:20 +02:00
594efbd174 Enhance response handling in ask command and truncate user input 2025-09-22 01:30:53 +02:00
0a816cc2ea Update emoji usage guidelines in system prompt 2025-09-21 03:55:31 +02:00
2960f66be6 Remove settings.py from Dockerfile copy command 2025-09-20 22:08:18 +02:00
c6fffb0fa4 Remove specific SHA from base image in Dockerfile for flexibility 2025-09-20 22:05:50 +02:00
1cea42ce7f Remove unused environment variable and annotations from Docker metadata extraction 2025-09-20 22:04:15 +02:00
e20f940eaf Stuff and things 2025-09-20 22:01:36 +02:00
83f12dcbd7 Revert "Refactor extra_context to personalize server values and remove party affiliation"
This reverts commit 2c2f4df502.
2025-09-06 02:09:27 +02:00
2c2f4df502 Refactor extra_context to personalize server values and remove party affiliation 2025-09-06 02:05:56 +02:00
08c286cff5 Refactor chat function to support asynchronous image processing and enhance image extraction from user messages 2025-09-06 01:58:19 +02:00
2aec54d51b Add fun day names to extra context in chat responses 2025-08-30 02:33:22 +02:00
cca242d2a4 Refactor emoji usage instructions 2025-08-17 16:59:56 +02:00
8a705fb0d8 Add sticker usage instructions and list available stickers in chat context 2025-08-17 06:06:36 +02:00
53fa0a02d1 Enhance chat function to include server emoji usage instructions and improve message clarity 2025-08-17 05:58:38 +02:00
3171595df0 Refactor chat function to improve prompt structure and update OpenAI response handling 2025-08-17 05:08:36 +02:00
c3ae6c7073 Fix trigger time check to ensure user presence in last_trigger_time dictionary 2025-08-17 05:03:12 +02:00
489d8980c8 Refactor Dockerfile to remove platform specification and clean up main.py by consolidating user permission checks 2025-08-17 04:58:23 +02:00
96695c0bee Add trigger time tracking and response logic for user interactions 2025-08-17 04:56:42 +02:00
7a6b4d8fce Refactor OpenAI response handling to use updated response types 2025-08-17 04:38:33 +02:00
f0f4e3c9b7 Enhance chat functionality by adding extra context and improving message handling 2025-08-17 03:57:41 +02:00