Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Choco
d9fb58ef92 Use snake_case for all database keys 2025-08-04 10:57:54 +08:00
Choco
c8fa4e561a Added silent messaging feature 2025-07-23 10:46:52 +08:00
Choco
f581980dd8 Fixed a bug 2025-05-13 17:23:14 +08:00
Choco
5b721c59fc Fixed an error when passing delete_after into Webhook 2025-05-13 16:53:56 +08:00
Choco
164b4b10dd Added customization for music controller buttons 2025-05-12 17:48:49 +08:00
Choco
3a3675eb59 Reconnect the player after restarted 2025-03-07 17:20:57 +08:00
Choco
2c16543e0c Fixed track source 2025-03-04 12:01:37 +08:00
Choco
3c0515adbf Added mit license 2025-01-28 12:12:40 +08:00
Choco
bd598c3ea1 Added others source settings 2024-12-10 10:57:46 +08:00
Choco
11fcbfa222 Added warning logs if missing translation 2024-12-10 09:59:46 +08:00
Choco
94c5fd4c27 Added request song channel feature 2024-12-05 13:33:29 +08:00
Choco
5722d35c11 Fixed some bugs 2024-08-30 15:25:37 +08:00
Choco
7ef2700730 Optimized some code 2024-06-26 07:42:37 +08:00
Choco
779ea8b4a2 Merged .env into settings.json 2024-05-14 20:39:11 +08:00
Choco
d4cb50a067 Added nodes panel in debug view 2024-04-20 13:21:20 +08:00
Choco
88a879f98a Optimized code 2024-04-12 19:36:35 +08:00
Choco
fd869d6209 Renamed a valuable 2024-03-22 11:30:01 +08:00
Choco
86c828fc1c Removed error_log 2024-03-22 11:29:31 +08:00
Choco
e68788f429 Updated logging system 2024-03-18 20:45:31 +08:00
Choco
ed2373260c Added error handler 2024-02-27 12:37:58 +08:00
Choco
8915415c4b Added played history feature 2024-02-21 21:15:21 +08:00
Choco
f6f2c0b7c3 Added track url in queue view and playlist view 2024-02-21 10:27:08 +08:00
Choco
d237c2f0ec Optimized code 2024-02-20 11:37:01 +08:00
Choco
8740c04077 Added track_color placeholder 2024-02-19 20:52:32 +08:00
Choco
464f9123e5 Optimized code 2024-02-17 13:04:20 +08:00
Choco
cc4ccd968f Improving the Playlist Function Implementation 2024-02-11 19:56:38 +08:00
Choco
95ec0970eb Removed create view 2024-02-11 19:52:14 +08:00
Choco
f4f84cea67 Switched from pymongo to motor for asynchronous MongoDB operations 2024-02-09 21:02:07 +08:00
Choco
ca9644bf26 Removed chapters command 2024-02-09 17:24:16 +08:00
Choco
bfc57f70e0 Return the state of update db method 2023-09-20 19:54:24 +08:00
Choco
40e1d343ea Updated Mit License 2023-09-08 13:47:38 +08:00
Choco
4f13023a04 remove async on check_roles method 2023-09-06 09:35:43 +08:00
Choco
b7456f5312 General clean code 2023-08-26 09:48:36 +08:00
Choco
e6a1d30026 Optimize code for improved cleanliness and enhanced performance. 2023-08-08 13:14:07 +08:00
Choco
4d375d5baa Optimized handling of language pack loading 2023-07-29 11:06:42 +08:00
Choco
930a24b804 Rewrite autoplay method 2023-07-27 22:07:19 +08:00
Choco
921c9f876c Raise exception when database name not found 2023-07-21 23:30:18 +08:00
Choco
456d56cf0d Added a return type to the function 2023-07-16 15:39:29 +08:00
Choco
96e8150269 Fixed settings is None 2023-06-24 15:08:16 +08:00
Choco
d1dce692fd Optimize spotify autoplay 2023-06-02 19:09:23 +08:00
Choco
0e4910cfdc Fixed autoplay 2023-05-31 12:23:50 +08:00
Choco
ae905146bc Better performance on start 2023-05-08 09:49:43 +08:00