updated cogs
This commit is contained in:
4
bot.py
4
bot.py
@@ -5,6 +5,9 @@ from dotenv import load_dotenv
|
||||
from database import Database
|
||||
import logging
|
||||
|
||||
# OC Bot - Coded by Ball Studios 🎨
|
||||
# A Discord bot for managing and roleplaying as original characters
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
|
||||
@@ -26,6 +29,7 @@ db = None
|
||||
async def on_ready():
|
||||
global db
|
||||
logger.info(f'{bot.user} has connected to Discord!')
|
||||
print('started')
|
||||
if db is None:
|
||||
db = Database()
|
||||
await db.connect()
|
||||
|
||||
Reference in New Issue
Block a user