From aee2ec5f3b3d98befc9b524c0b922b249af84d8e Mon Sep 17 00:00:00 2001 From: Choco Date: Thu, 2 Oct 2025 00:05:26 +0800 Subject: [PATCH] fixed some bugs and remove presences intents --- main.py | 1 + voicelink/config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 156d263..d321c6a 100644 --- a/main.py +++ b/main.py @@ -223,6 +223,7 @@ intents = discord.Intents.default() intents.message_content = False if bot_config.bot_prefix is None else True intents.members = bot_config.ipc_client.get("enable", False) intents.voice_states = True +intents.presences = False bot = Vocard( command_prefix=get_prefix, diff --git a/voicelink/config.py b/voicelink/config.py index 7c4a6f3..55e3c1a 100644 --- a/voicelink/config.py +++ b/voicelink/config.py @@ -84,7 +84,7 @@ class Config: self.invite_link: str = "https://discord.gg/wRCgB7vBQv" self.nodes: Dict[str, Dict[str, Union[str, int, bool]]] = settings.get("nodes", {}) self.max_queue: int = settings.get("default_max_queue", 1000) - self.search_platform: SearchType = SearchType.match(settings.get("default_search_platform")) or SearchType.YOUTUBE + self.search_platform: SearchType = SearchType.match(settings.get("default_search_platform", "youtube")) or SearchType.YOUTUBE self.bot_prefix: str = settings.get("prefix", "") self.activity: List[Dict[str, str]] = settings.get("activity", [{"listen": "/help"}]) self.logging: Dict[Union[str, Dict[str, Union[str, bool]]]] = settings.get("logging", {})