336 Commits

Author SHA1 Message Date
1a6330537f
feat: Implement command usage tracking
Introduces a new `command_usage_counters` table to track how many times specific commands are used between two users.

- Adds `_ensure_usage_table_exists` to create the table if it doesn't exist.
- Implements `_increment_usage_counter` to update or insert usage counts.
- Adds `_get_usage_count` to retrieve usage counts.
- Integrates usage tracking into the `molest` command (both slash and legacy).
- Adds logging for database operations related to usage tracking.
2025-05-26 21:45:30 -06:00
d89645ca28
Refactor: Store group customizations as objects
Changes the `group_customizations` data structure to store a dictionary containing `name` and `description` for each group, rather than just the custom name. This aligns with how command customizations are stored and prepares for future additions like custom group descriptions.

Updates the dashboard UI and settings cog to correctly display the new group customization format, while maintaining backward compatibility for existing data.
2025-05-26 16:23:47 -06:00
0008327bd0
feat: Add command to list available command groups for debugging 2025-05-26 16:18:49 -06:00
92c07a8430
fix: Ignore DM messages and reactions in leveling system for guilds only 2025-05-26 15:49:43 -06:00
0571033ca2
fix: Update error message for owner-only command to include link to web dashboard 2025-05-26 15:31:13 -06:00
d09a0897c6
feat: add OwnerUtilsCog with DM command for owner-only messaging and enhanced error handling 2025-05-26 15:05:15 -06:00
195b95d575
feat: implement owner check for slash_change_avatar command and improve error handling 2025-05-26 14:52:35 -06:00
61b433360c
feat: update change_avatar command to restrict usage to bot owner only and enhance error messages 2025-05-26 14:43:03 -06:00
1b0fdb86ca
feat: update instruction for character responses to use lowercase text style 2025-05-26 13:58:46 -06:00
5c0ea71b69
fix: clarify instruction on username usage in TetoCog's character prompt 2025-05-26 13:56:32 -06:00
9af3a9eb42
Refactor: Enhance Ame-chan's character prompt for TetoCog
Expand the system prompt for Ame-chan (TetoCog) to provide a more detailed and nuanced psychological profile, background, and distinct public (KAngel) and private (Ame) personas. This aims to improve the bot's ability to embody the character's complex personality, including dissociation, anxiety, validation addiction, and specific speech patterns and mannerisms for both identities.
2025-05-26 13:54:58 -06:00
pancakes-proxy
1b48d2eb6e feat: update character persona for TetoCog to reflect Ame-chan's traits and behaviors 2025-05-26 07:56:51 -04:00
632a876d6c
feat: add DictionaryCog for word definition and dictionary lookup commands 2025-05-25 23:02:24 -06:00
62c752a569
feat: implement web search functionality using Tavily API and add related commands 2025-05-23 16:08:53 -06:00
d04d2649a9
feat: add more diverse kiss and hug messages for enhanced user interaction 2025-05-23 15:38:32 -06:00
31e7321f74
fix: improve user lookup in marriage commands to work in DMs
Enable marriage commands to work in direct messages and handle cases where partners are not in the same guild by:
- Checking if interaction is in guild context
- Using bot.fetch_user as fallback when guild.get_member fails
- Adding error handling for user fetching operations
2025-05-22 21:24:29 -06:00
1b7e96f2a5
refactor: Update marriage logic to use fetch_user for better compatibility in guild and DM contexts 2025-05-22 21:21:53 -06:00
7309767ecb
refactor: Update marriage cog to use discord.User instead of discord.Member for user parameters 2025-05-22 21:08:28 -06:00
bb0a6e5734
refactor: Clarify system prompt for Teto AI regarding user message context and username usage 2025-05-22 21:07:17 -06:00
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