From 71eb141093f743b6fb85134979d33bef3ad6f27c Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 25 Jun 2018 06:23:45 +0000 Subject: [PATCH] Make cleanup db messages shard --- discordbot/cleanup_db_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/cleanup_db_messages.py b/discordbot/cleanup_db_messages.py index fe2a89c..2267d01 100644 --- a/discordbot/cleanup_db_messages.py +++ b/discordbot/cleanup_db_messages.py @@ -20,7 +20,7 @@ logging.getLogger('sqlalchemy') # messages store # ########################### -class Titan(discord.Client): +class Titan(discord.AutoShardedClient): def __init__(self): super().__init__() self.aiosession = aiohttp.ClientSession(loop=self.loop)