update events.py to use new Data class
@@ -7,13 +7,14 @@ import random
class Events(commands.Cog):
def __init__(self, bot):
self.bot = bot
+ self.d = self.bot.d
self.logger = logging.getLogger("Events")
self.logger.setLevel(logging.INFO)
@commands.Cog.listener()
async def on_ready(self):
- await self.bot.change_presence(activity=discord.Game(name=random.choice(self.bot.playing_list)))
+ await self.bot.change_presence(activity=discord.Game(name=random.choice(self.d.playing_list)))
self.logger.info(f"\u001b[36;1m CONNECTED \u001b[0m [{self.bot.shard_count} Shards] [{len(self.bot.cogs)} Cogs]")
