We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5da6c1 commit 7cff28eCopy full SHA for 7cff28e
1 file changed
utils/db.py
@@ -1837,3 +1837,9 @@ def get_stats(self, guild_id: int):
1837
except Exception as e:
1838
self.logger.error(f"Error getting stats: {e}")
1839
return {}
1840
+
1841
+# Create an instance of AsyncDatabase to be imported elsewhere
1842
+async_db = AsyncDatabase.get_instance()
1843
1844
+# Add a 'db' alias for backward compatibility
1845
+db = async_db
0 commit comments