Make cleanup db messages shard

This commit is contained in:
Jeremy Zhang 2018-06-25 06:23:45 +00:00
parent 4af93a976d
commit 71eb141093

View File

@ -20,7 +20,7 @@ logging.getLogger('sqlalchemy')
# messages store # # messages store #
########################### ###########################
class Titan(discord.Client): class Titan(discord.AutoShardedClient):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.aiosession = aiohttp.ClientSession(loop=self.loop) self.aiosession = aiohttp.ClientSession(loop=self.loop)