fixed some bugs and remove presences intents
This commit is contained in:
1
main.py
1
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,
|
||||
|
||||
@@ -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", {})
|
||||
|
||||
Reference in New Issue
Block a user