[V3] __unload -> cog_unload

This commit is contained in:
aikaterna
2019-06-25 10:49:17 -07:00
parent ed1aa25490
commit f296c65ef2
5 changed files with 12 additions and 21 deletions

View File

@@ -5,10 +5,7 @@ from redbot.core.utils.chat_formatting import box
import xml.etree.ElementTree as ET
BaseCog = getattr(commands, "Cog", object)
class Wolfram(BaseCog):
class Wolfram(commands.Cog):
"""Ask Wolfram Alpha any question."""
def __init__(self, bot):
@@ -55,5 +52,5 @@ class Wolfram(BaseCog):
await self.config.WOLFRAM_API_KEY.set(key)
await ctx.send("Key set.")
def __unload(self):
def cog_unload(self):
self.bot.loop.create_task(self.session.close())