mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 20:47:44 +00:00
Implemented lavalink for bot + cog
This commit is contained in:
@@ -11,9 +11,13 @@ from discord.ext.commands.errors import (
|
||||
ExtensionNotFound,
|
||||
NoEntryPointError,
|
||||
)
|
||||
import lavalink
|
||||
|
||||
|
||||
class ChristmasBot(commands.Bot):
|
||||
lavalink: lavalink.Client
|
||||
invite_link: str
|
||||
|
||||
def __init__(self, config: Dict[Any, Any]):
|
||||
intents = discord.Intents(
|
||||
voice_states=True, guild_messages=True, guilds=True, messages=True
|
||||
@@ -23,8 +27,6 @@ class ChristmasBot(commands.Bot):
|
||||
self.initial_cog_names: List[str] = self.config.get("cogs", [])
|
||||
self.colors: Dict[str, Color] = self.process_colours(config.get("colors", []))
|
||||
|
||||
self.invite_link: str = ""
|
||||
|
||||
super().__init__(
|
||||
command_prefix=self.prefix_callable,
|
||||
description=self.config["info"].get("description", ""),
|
||||
|
||||
Reference in New Issue
Block a user