organization changes in webhooks.py
@@ -11,17 +11,17 @@ class Webhooks(commands.Cog):
def __init__(self, bot):
self.bot = bot
- self.d = self.bot.d
- self.k = self.bot.k
+ self.d = bot.d
+ self.k = bot.k
- self.db = self.bot.get_cog('Database')
+ self.db = bot.get_cog('Database')
self.ses = aiohttp.ClientSession()
self.server_runner = None
self.webhook_server = None
- self.bot.loop.create_task(self.webhooks_setup())
- self.bot.loop.create_task(self.update_stats())
+ bot.loop.create_task(self.webhooks_setup())
+ bot.loop.create_task(self.update_stats())
def cog_unload(self):
self.bot.loop.create_task(self.server_runner.cleanup())
