mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Initial switch to gino for discordbot db
This commit is contained in:
@ -68,7 +68,7 @@ class Titan(discord.AutoShardedClient):
|
||||
await self.change_presence(status=discord.Status.online, activity=game)
|
||||
|
||||
try:
|
||||
self.database.connect(config["database-uri"])
|
||||
await self.database.connect(config["database-uri"])
|
||||
except Exception:
|
||||
self.logger.error("Unable to connect to specified database!")
|
||||
traceback.print_exc()
|
||||
|
Reference in New Issue
Block a user