317 Commits

Author SHA1 Message Date
d98a69769b
Use correct endpoint for file processing status checks
Update the file status polling mechanism to use the `/upload/api/file-status/{file_status_id}` endpoint. The `file_status_id` now includes the file extension when available, ensuring the correct identifier is sent to the API. This resolves issues with incorrect status retrieval and improves reliability of file processing checks.
2025-05-21 12:34:54 -06:00
59a228f7b4
feat: Refactor Teto image fetching and response handling for improved error management and interaction support 2025-05-21 12:27:39 -06:00
92e4deda5f
feat: Include file extension in upload URLs
Append the file extension to the generated upload URL if available. This ensures the URL is more accurate and directly points to the file with its correct type, both at initial generation and after file processing completes.
2025-05-21 12:25:09 -06:00
47353d7c8b
feat: Poll for file processing status after upload
Implement polling for the uploaded file's `access_ready` status to ensure it's fully processed and available before presenting the final details.

This improves the user experience by:
- Displaying an initial "waiting for file processing" message.
- Editing the same message with the final upload embed once processing is complete, providing a smoother interaction.

Additionally, updated API response keys for file size (from `file_size` to `size`) and original name (from `original_name` to `file_name`) to align with recent API changes.
2025-05-21 12:23:49 -06:00
6ac3a6d5bc
Fix: Correct file URL generation for uploaded files
The previous file URL included a redundant `/upload` segment, leading to an incorrect path. This change removes the extra segment to ensure generated file URLs are valid and accessible.
2025-05-21 12:02:28 -06:00
bcc42664d0
fix: Update API base URL by removing trailing segment for correct endpoint usage 2025-05-21 11:59:23 -06:00
c6ad3aeae0
fix: Update API base URL and improve request logging in UploadCog 2025-05-21 11:54:31 -06:00
bfd0d606ab
feat: Add timeout and interaction control to captcha modal
Set a 10-minute timeout for the `CaptchaModal` to prevent it from hanging indefinitely. Implemented a `wait()` method within the modal, allowing the calling function to asynchronously wait for submission or timeout. This enables proper flow control for the upload process.

Restricted the "Solve Captcha" button in `CaptchaView` to only be clickable by the user who initiated the command, preventing unauthorized interaction.
2025-05-21 11:50:19 -06:00
04c2dd75b9
Refactor: Simplify captcha interaction and API logic
Removed internal submission tracking (event, timeout flag, wait method) from `CaptchaModal`, streamlining its state management.
Eliminated the `original_interactor_id` check in `CaptchaView`, allowing any user to attempt solving the captcha.
Cleaned up redundant API path normalization logic and removed debugging print statements in `_make_api_request` for a more concise implementation.
2025-05-21 11:46:26 -06:00
149a96a90d
feat: Enhance captcha handling with submission tracking and user restriction 2025-05-21 11:43:34 -06:00
085d9be740
feat: Refactor captcha handling to use a view for modal submission 2025-05-21 11:37:42 -06:00
35546ed55b
fix: Add headers to aiohttp ClientSession for UploadCog 2025-05-21 11:20:19 -06:00
6549a5c324
feat: Implement interactive image captcha for file uploads 2025-05-21 11:17:55 -06:00
8788cea989
feat: Add upload cog, update AI model, and refine Teto prompt
- Introduce `upload_cog.py` for handling file uploads.
- Update AI model from `google/gemini-2.5-flash-preview` to `google/gemini-2.5-flash-preview-05-20` for improved performance and stability.
- Refine Teto's roleplay system prompt:
    - Add explicit 18+ age disclaimer for all roleplay characters.
    - Include context about prepended usernames for better AI understanding.
    - Adjust Teto's perceived age to 18 for consistency.
    - Remove outdated or unnecessary prompt instructions.
2025-05-21 11:14:06 -06:00
5c863f0ba8
Fix: Decrease max font size for captions
Reduce the maximum font size allowed for captions to prevent text from overflowing or becoming too large.
2025-05-20 21:17:00 -06:00
0a065752d9
fix: Correct max font size for captions to 50 2025-05-20 21:14:46 -06:00
ed4168798e
a 2025-05-20 21:13:55 -06:00
9dd1b821ab
Refactor code structure for improved readability and maintainability 2025-05-20 21:13:07 -06:00
e68e1467a7
feat: Increase max font size for captions
Increase the maximum font size for captions to 100 and adjust the font size calculation to use 20% of the image height. This allows for larger and more readable text on larger images.
2025-05-20 21:08:19 -06:00
32eecffdd0
feat: Enhance GIF captioning with text wrapping and dynamic height adjustment 2025-05-20 21:06:38 -06:00
8de629ca36
fix: Correct font path in generate_board_image function 2025-05-20 20:47:27 -06:00
6c39bec4f7
Refactor code structure for improved readability and maintainability 2025-05-20 20:46:13 -06:00
8cac1bddc4
feat: Update font directory and file for Wordle game board image generation 2025-05-20 20:44:13 -06:00
970052dc66
feat: Add slash command for rape message and update bot to load new cogs 2025-05-20 20:42:24 -06:00
4cde0329cb
feat: Add reverse option to backshots command
Adds a `reverse` boolean parameter to both the prefix and slash commands for `backshots`. This allows users to swap the roles of the sender and recipient in the generated message.
2025-05-20 20:35:11 -06:00
a71ac0d9ab
Refactor: Rename roleplay cog to neru_roleplay_cog
Rename the `roleplay_cog` to `neru_roleplay_cog` to align with the naming convention of other cogs and improve clarity. Update the cog loading list in `neru_bot.py` accordingly.
2025-05-20 20:33:23 -06:00
b8248ee7a9
feat: Enhance ban system with interaction checks for slash commands 2025-05-20 20:07:52 -06:00
dd334c5f24
feat: Generate initial Wordle game board image for game start 2025-05-20 20:03:06 -06:00
9085e85e8d
Fix: Improve error reporting and add ban system cog
- Enhance `send_error_embed_to_owner` to include more context like command name, user, server, channel, timestamp, and message content.
- Add a new cog for a ban system, including commands for banning and unbanning users.
2025-05-20 19:15:43 -06:00
bfd20931fa
fix: Update invite reason in server list command to clarify permission implications 2025-05-20 17:44:50 -06:00
8fdece5c3c
fix: Update invite reason for server list requests to clarify bot ownership 2025-05-20 17:42:31 -06:00
a0bf8e2f8e
fuck 2025-05-20 06:34:53 -06:00
7bb762d21d
fix: Correct typo in AI personality description for clarity 2025-05-19 22:42:49 -06:00
909616fb60
feat: Enhance shell command extraction and response formatting in Teto AI 2025-05-19 22:34:50 -06:00
c747bd9f2f
feat: Update AI instructions to allow showing full command output 2025-05-19 21:33:01 -06:00
241fb7b140
fix: Escape pipe character in command safety checks and update error message for blocked commands 2025-05-19 21:30:38 -06:00
9054471707
feat: Add debug logging for blocked shell commands in Teto AI 2025-05-19 21:27:29 -06:00
90c024acce
feat: Add command safety checks to prevent execution of dangerous shell commands 2025-05-19 21:22:27 -06:00
decc7aa2fb
feat: Enhance shell command extraction with debug logging and update AI instructions 2025-05-19 21:11:22 -06:00
b643e14a9e
feat: Add shell command extraction and execution handling in Teto AI responses 2025-05-19 21:08:41 -06:00
8c451f1a48
fix: Update age reference for Teto character description in context 2025-05-19 20:54:38 -06:00
ebdef222c0
feat: Implement shell command execution feature in Teto AI with toggle option 2025-05-19 20:52:43 -06:00
61e18a68d2
feat: Enhance Teto image command with interactive button for fetching another image 2025-05-19 20:37:57 -06:00
4a9565fdbe
fix: Remove footer from Teto image embed for improved clarity 2025-05-19 19:21:15 -06:00
3844f2e5d0
fix: Correct variable naming for image path retrieval in Teto image command 2025-05-19 19:20:33 -06:00
fb2e360d8c
fix: Validate retrieved image URL and improve error handling 2025-05-19 19:19:43 -06:00
a4843dbfc2
fix: Update embed footer to remove URL and improve clarity 2025-05-19 19:17:23 -06:00
b6cc472eee
feat: Add User-Agent header to Teto image request for improved compatibility 2025-05-19 19:15:47 -06:00
66547d94aa
feat: Rename command to 'tetoimage' and add description for clarity 2025-05-19 18:39:28 -06:00
70e46f525e
feat: Implement TetoImageCog to fetch and display random images of Kasane Teto 2025-05-19 18:37:11 -06:00