code organization changes in events.py
@@ -8,9 +8,10 @@ import random
class Events(commands.Cog):
def __init__(self, bot):
self.bot = bot
- self.d = self.bot.d
- self.db = self.bot.get_cog('Database')
+ self.d = bot.d
+
+ self.db = bot.get_cog('Database')
@commands.Cog.listener()
async def on_ready(self):
