Commit graph

46 commits

Author SHA1 Message Date
195ca21947
Refactor environment variables and update systemd service configuration for ANewDawn 2026-03-17 19:47:25 +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
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
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
d3ee8903c6 Refactor ask command to improve message handling and add chunked response sending 2025-09-23 05:00:14 +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
e20f940eaf Stuff and things 2025-09-20 22:01:36 +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
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
f0f4e3c9b7 Enhance chat functionality by adding extra context and improving message handling 2025-08-17 03:57:41 +02:00
007a14bf5b Enhance response formatting in chat interactions for better clarity 2025-08-17 02:32:51 +02:00
86cb28208d Enhance chat functionality by adding message memory and context for improved responses 2025-08-17 02:25:43 +02:00
158c88c57e Fix typo in setup_hook docstring 2025-08-17 02:02:27 +02:00
4e052cb511
Don't sync guild commands 2025-04-14 10:31:22 +02:00
32d8d0aae6
Remove image creation command and related imports from main.py 2025-04-14 10:30:23 +02:00
bd3cbc6f90
Don't call .exception() outside exception handler 2025-02-10 01:29:28 +01:00
3f02abbe95
Update image encoding to set WebP quality to 90 for enhanced images 2025-02-02 22:41:54 +01:00
92bfea0ee4
Remove enhance_image4 function and its usage from enhance_image_command 2025-02-02 21:59:59 +01:00
2596496ea6
Also get image url from the message by regexing the message. 2025-02-02 21:52:02 +01:00
af2e96e7f9
Integrate Sentry for error tracking 2025-02-02 21:47:13 +01:00
8d83435be5
Add enhance_image4 function for advanced image enhancement using MSRCR 2025-02-02 06:16:02 +01:00
30ddd72321
Enhance image processing functions with denoising capabilities 2025-02-02 06:05:03 +01:00
fcc157e4f9
Remove quality parameter from WebP encoding in image enhancement functions 2025-02-02 05:56:10 +01:00
93852cf3e0
Use webp instead of png 2025-02-02 05:45:35 +01:00
0281a1a77c
Remove duplicate command 2025-02-02 05:37:21 +01:00
981a19134c
Add multiple image enhancement methods using OpenCV 2025-01-09 04:25:06 +01:00
fb883a5953
Add image enhancement command 2025-01-06 21:14:49 +01:00
7121723bc4
Add create_image command to generate images from prompts 2024-12-30 02:40:32 +01:00
0c20e496c1
Use discord.py instead of Hikari so we can use user commands 2024-12-30 01:38:56 +01:00
e27d043e2c
Make /ask global 2024-12-25 20:18:03 +01:00
a26e3ebf08
Add slash command 2024-12-22 05:04:42 +01:00
4f53f91e4a
Use Hikari instead of discord.py 2024-12-22 03:43:10 +01:00
3f31c3ea4e
Don't trigger on all replies 2024-07-21 16:11:01 +02:00
61550b513b
Remove bold username 2024-07-20 05:21:44 +02:00
b238504a02
Rewrite bot into Python 2024-07-20 05:13:14 +02:00