def __init__(self, bot):
    self.bot = bot
    self.process = psutil.Process()
    self._batch_lock = asyncio.Lock(loop=bot.loop)
    self._data_batch = []
    self.bulk_insert_loop.add_exception_type(asyncpg.PostgresConnectionError)
    self.bulk_insert_loop.start()
    self._gateway_queue = asyncio.Queue(loop=bot.loop)
    self.gateway_worker.start()
    self._resumes = []
    self._identifies = defaultdict(list)
def __init__(self, bot):
    self.bot = bot
    self.process = psutil.Process()
    self._batch_lock = asyncio.Lock(loop=bot.loop)
    self._data_batch = []
    self.bulk_insert_loop.add_exception_type(asyncpg.PostgresConnectionError)
    self.bulk_insert_loop.start()
    self._gateway_queue = asyncio.Queue(loop=bot.loop)
    self.gateway_worker.start()
    self._resumes = []
    self._identifies = defaultdict(list)