Exemplo n.º 1
0
 def __init__(self, bot: commands.Bot) -> None:
     bot.add_listener(self._handler, "on_socket_response")
     self.bot = bot
     self._loop = bot.loop
     self._sharded = isinstance(bot, commands.AutoShardedBot)
     self._shard_count = bot.shard_count if bot.shard_count is not None else 1
     self._socket = None
     self._down = {}
     self._players = {}
     bot.aqualink = self