def __init__(self, *args, **kwargs) -> None: """Initialize the subclass.""" super().__init__(*args, **kwargs) # -- Prefix -- self.default_prefix = config.COMMAND_PREFIX self.prefix_dict = {} # -- Bot info -- self.cluster = kwargs.get("cluster_id") self.cluster_count = kwargs.get("cluster_count") self.version = kwargs.get("version") # -- Start time config -- self.start_time = datetime.utcnow() # -- Sessions config -- self.session = None self.database = None # -- Startup config -- self.initial_call = True # -- Spotify config -- self.spotify = spotify.Client( client_id=config.spotify_client_id, client_secret=config.spotify_client_secret, ) self.spotify_http = spotify.HTTPClient( client_id=config.spotify_client_id, client_secret=config.spotify_client_secret, )
def __init__(self, bot: Life) -> None: self.bot = bot self.bot.lavalink = client.Client(bot=self.bot, session=self.bot.session) self.bot.spotify = spotify.Client(client_id=self.bot.config.spotify_app_id, client_secret=self.bot.config.spotify_secret) self.bot.spotify_http = spotify.HTTPClient(client_id=self.bot.config.spotify_app_id, client_secret=self.bot.config.spotify_secret) self.bot.ksoft = ksoftapi.Client(self.bot.config.ksoft_token)
def __init__(self, bot: Life) -> None: self.bot = bot self.slate = slate.Client(bot=self.bot) self.spotify = spotify.Client( client_id=self.bot.config.spotify_client_id, client_secret=self.bot.config.spotify_client_secret) self.spotify_http = spotify.HTTPClient( client_id=self.bot.config.spotify_client_id, client_secret=self.bot.config.spotify_client_secret) self.ksoft = ksoftapi.Client(self.bot.config.ksoft_token)
def __init__(self, bot: Life) -> None: self.bot = bot self.bot.lavalink = client.Client(bot=self.bot, session=self.bot.session) self.bot.spotify = spotify.Client( client_id=self.bot.config.spotify_app_id, client_secret=self.bot.config.spotify_secret) self.bot.spotify_http = spotify.HTTPClient( client_id=self.bot.config.spotify_app_id, client_secret=self.bot.config.spotify_secret) self.load_task = asyncio.create_task(self.load())