mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Revert "Connect to redis after bot is ready"
This commit is contained in:
parent
d5492af9df
commit
6d7ccdbec7
@ -65,6 +65,7 @@ class Titan(discord.AutoShardedClient):
|
|||||||
self.loop.close()
|
self.loop.close()
|
||||||
|
|
||||||
async def start(self):
|
async def start(self):
|
||||||
|
await self.redisqueue.connect()
|
||||||
await super().start(config["bot-token"])
|
await super().start(config["bot-token"])
|
||||||
|
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
@ -75,7 +76,6 @@ class Titan(discord.AutoShardedClient):
|
|||||||
print('------')
|
print('------')
|
||||||
print("Shard count: " + str(self.shard_count))
|
print("Shard count: " + str(self.shard_count))
|
||||||
print("------")
|
print("------")
|
||||||
await self.redisqueue.connect()
|
|
||||||
self.loop.create_task(self.redisqueue.subscribe())
|
self.loop.create_task(self.redisqueue.subscribe())
|
||||||
|
|
||||||
self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None))
|
self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None))
|
||||||
|
Loading…
Reference in New Issue
Block a user