Commit Graph

606 Commits

Author SHA1 Message Date
Choco
8c68686497 Fix bot command not working in music request channel 2025-10-03 14:57:11 +08:00
Choco
90c2f22496 Fix music controller being removed after song playback 2025-10-03 14:56:30 +08:00
Choco
50298d2709 Resolve MongoDB handler not updating cache 2025-10-03 14:55:29 +08:00
Choco
81a8603e1d Added default language in language handler 2025-10-02 12:28:50 +08:00
Choco
8251e99dc4 Merge pull request #85 from ChocoMeow/refactor-views
Refactors the Voicelink module to centralize logic and enhance maintainability. Key changes include:
2025-10-02 12:10:09 +08:00
Choco
b6edd24171 Updated the language pack 2025-10-02 12:09:51 +08:00
Choco
de2a79ff93 Delete language.py 2025-10-02 00:21:35 +08:00
Choco
20df3703c3 Refactor localization keys 2025-10-02 00:10:25 +08:00
Choco
d439204146 Added get cached settings method in mongodbhandler 2025-10-02 00:06:09 +08:00
Choco
aee2ec5f3b fixed some bugs and remove presences intents 2025-10-02 00:05:26 +08:00
Choco
3831c87f9b Add default_search_platform option for customizable search platform 2025-09-29 21:15:23 +08:00
Choco
f6722e538a Moved ipc_client into voicelink 2025-09-29 19:54:51 +08:00
Choco
ef54f96f51 Migrate scripts to voicelink, rewrite handlers and views 2025-09-29 19:39:19 +08:00
Choco
7a4f85a74d Merge branch 'beta' into refactor-views 2025-09-26 13:29:27 +08:00
Choco
b0bf23ae2a Simplify bot prefix retrieval logic
Removed special handling for bot owner and access users in get_prefix. The function now always returns the configured prefix or the default.
2025-09-26 13:26:02 +08:00
Choco
44b4ba68d1 Fix language fallback logic in _get_lang function
Previously, _get_lang returned 'EN' if the language was not found, which could cause issues. Now, it sets lang to 'EN' and continues processing, ensuring consistent behavior.
2025-09-25 23:13:07 +08:00
Choco
2c98dfd763 Update command docstrings and localization keys
Improved docstrings for 'play' and 'search' commands in basic.py for clarity. Updated localization keys and translations in es-419.json, es-ES.json, and zh-CN.json to fix punctuation, naming consistency, and minor translation errors.
2025-09-24 17:58:15 +08:00
Choco
355d0e1186 Refactor language retrieval functions
Removed get_lang_non_async and replaced its usage with a new internal _get_lang function. Updated get_lang to use _get_lang for consistency. Updated Player class to use _get_lang directly, improving code clarity and reducing duplication.
2025-09-23 10:47:44 +08:00
Choco
0a7e9558b8 Merge pull request #82 from AheadAlot/main
Add Chinese simplified and traditional translations
2025-09-23 10:27:31 +08:00
Choco
7a2484265a Merge branch 'beta' into pr/82 2025-09-23 10:24:34 +08:00
Choco
eac92b9d73 Update zh-CN.json 2025-09-23 10:24:24 +08:00
TomStilson
c556f0fe7b Add Chinese simplified and traditional translations 2025-09-20 12:58:48 -04:00
Choco
9f43cce969 Merge branch 'beta' into refactor-views 2025-09-19 23:30:46 +08:00
Choco
1633f14b64 Refactor playlist view and update language files
Refactored playlist viewing logic for improved modularity and maintainability, introducing PlaylistViewManager and DynamicViewManager. Updated language files to standardize playlist view titles and descriptions, and removed unnecessary emojis. Updated requirements.txt to discord.py 2.6.3. Enhanced send function to support file attachments.
2025-09-19 23:29:42 +08:00
Choco
851871e123 Update play and search command descriptions and translations
Revised the docstrings for the play and search commands in basic.py for clarity. Updated corresponding translation strings in es-419.json, es-ES.json, and zh-TW.json to match the new descriptions.
2025-09-19 21:39:51 +08:00
Choco
832da8a26d Merge branch 'beta' into refactor-views 2025-09-19 21:38:10 +08:00
Choco
260af1d447 Remove Lavalink Docker setup and config files
Deleted docker-compose.yml, lavalink/Dockerfile-lavalink, and lavalink/application.yml to remove support for running Lavalink via Docker. This change may indicate a migration away from Docker-based deployment or a refactor of the service architecture.
2025-09-18 23:05:20 +08:00
Choco
2c9aae7861 Refactor queue view and add pagination utilities
Replaced ListView with QueueView for queue/history display, introducing improved pagination and modal support via new utilities in views/utils/. Updated imports and references in cogs/basic.py and views/__init__.py. Removed views/list.py and added views/queue.py, views/utils/pagination.py, and views/utils/modal.py for modular pagination and modal handling.
2025-09-16 14:53:22 +08:00
Choco
f1fa4606ed Fix track existence check in Node.get_tracks
Corrects a variable name in the track existence check from 'track' to 'tracks', ensuring the method properly returns an empty list when no tracks are found.
2025-09-16 14:49:52 +08:00
Choco
8a6632e768 Bump version to v2.7.2 2025-08-25 17:15:28 +08:00
Choco
e1c72cc4e2 Merge pull request #77 from ChocoMeow/beta
Vocard v2.7.2 Update: A lot new features, bug fixes, and code clean-up
2025-08-25 17:08:09 +08:00
Choco
5c973a76b9 Improve message handling and permission checks
Added a 'requires_fetch' parameter to the send function to ensure messages are fetched when needed. Enhanced command interaction checks to verify bot permissions for reading and sending messages in channels. Updated player controller logic to use the new fetch behavior for controller messages.
2025-08-24 22:47:52 +08:00
Choco
0e8b3ce9e7 Improve message handling in send function
Enhances the send function to handle different Discord message response types more robustly by normalizing the returned message object. This ensures compatibility with InteractionCallbackResponse, WebhookMessage, and InteractionMessage types.
2025-08-24 21:31:03 +08:00
Choco
24cd6caefa Fix bot mention prefix response logic 2025-08-23 22:36:26 +08:00
Choco
15ed5b2edd Update Lavalink to latest version and plugin
Updated Dockerfile-lavalink to fetch the latest Lavalink.jar release instead of a fixed version. Bumped youtube-plugin dependency from 1.13.4 to 1.13.5 in application.yml. Also removed commented-out dashboard dependency from docker-compose.yml for cleanup.
2025-08-23 10:59:12 +08:00
Choco
4b01a3f892 Update docker-image.yml 2025-08-23 10:53:59 +08:00
Choco
236284b68a Merge pull request #75 from MiguVT/main
Add Spanish language support for slash commands
2025-08-20 22:19:30 +08:00
Choco
cce7ee4331 Add new keys to Spanish language files
Added 'Fairqueue' and 'togglecontroller' keys to both es-419.json and es-ES.json for improved localization support. No other changes were made to the translation content.
2025-08-20 22:17:43 +08:00
MiguVT
fa0d410d93 Improves command synchronization handling
Adds a smart command sync strategy to handle potential command conflicts during bot startup.

This implementation includes:
- Initial attempt at a normal sync.
- Conflict resolution mechanism via Discord's bulk update endpoint if "Entry Point command" errors are encountered.
- Error handling and logging for increased reliability.
2025-08-18 16:29:34 +02:00
MiguVT
8cd6b33d89 Updates translations for Spanish
Updates the Spanish translations in both es-419 and es-ES language files.

This commit improves the accuracy and consistency of the translations, focusing on command names and descriptions to provide a better user experience.
2025-08-18 15:38:03 +02:00
MiguVT
42a40d1ba3 Merge branch 'beta' into main 2025-08-12 13:30:04 +00:00
Choco
e7aa431ae2 Handle Playlist type in track search results
Added a check to handle cases where the returned tracks are a Playlist object, ensuring the correct list of tracks is used for app command choices.
2025-08-11 17:44:46 +08:00
Choco
f6c25118e1 Add Vietnamese language support
Added VN.json containing Vietnamese translations for bot messages.
2025-08-10 12:44:25 +08:00
Choco
8edc26a6d0 Standardize permission and message keys in code and locales
Updated various permission and message keys in the codebase and all language files for consistency. Also added missing keys and fixed minor typos in several language files.
2025-08-10 12:44:05 +08:00
Choco
76ccc7db35 Add dotenv support for environment-based settings
Integrated python-dotenv to load environment variables and updated Settings to use values from either the provided dictionary or environment. Added python-dotenv to requirements.txt.
2025-08-07 11:11:23 +08:00
Choco
69bea8e6fe Merge pull request #69 from Azarath7/vocard-docker
Add healthcheck for dashboard service
2025-08-07 10:55:37 +08:00
Choco
6587409148 Add Spotify Tokener service and update plugin configs
Added a new spotify-tokener service to docker-compose.yml and updated documentation links to use the latest version. In lavalink/application.yml, enabled anonymous token usage for Spotify with a custom token endpoint, and updated YouTube and LavaSrc plugin dependencies to newer versions.
2025-08-07 10:54:16 +08:00
Choco
f763844526 Merge branch 'beta' into pr/69 2025-08-07 10:20:29 +08:00
Choco
f9a6185e38 Merge branch 'beta' into pr/75 2025-08-06 10:49:10 +08:00
Choco
07b2576729 Fix send function context handling and queueType key
Updated the send function to correctly handle TempCtx and only include 'ephemeral' if supported by the send function. Also fixed the key from 'queue_type' to 'queueType' in the Player's IPC message for consistency with expected API.
2025-08-06 10:48:44 +08:00