diff options
| author | 2019-12-07 20:11:50 -0800 | |
|---|---|---|
| committer | 2019-12-07 20:11:50 -0800 | |
| commit | 6fe61e5919cb541a1651312a01ddf7e7f10d0f86 (patch) | |
| tree | 5d92e20370ce9c0c35517cec4c78080d129f3d1c /bot/cogs/wolfram.py | |
| parent | Subclass Bot (diff) | |
Change all Bot imports to use the subclass
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/wolfram.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/cogs/wolfram.py b/bot/cogs/wolfram.py index ab0ed2472..c3c193cb9 100644 --- a/bot/cogs/wolfram.py +++ b/bot/cogs/wolfram.py @@ -7,8 +7,9 @@ import discord from dateutil.relativedelta import relativedelta from discord import Embed from discord.ext import commands -from discord.ext.commands import Bot, BucketType, Cog, Context, check, group +from discord.ext.commands import BucketType, Cog, Context, check, group +from bot.bot import Bot from bot.constants import Colours, STAFF_ROLES, Wolfram from bot.pagination import ImagePaginator from bot.utils.time import humanize_delta @@ -151,7 +152,7 @@ async def get_pod_pages(ctx: Context, bot: Bot, query: str) -> Optional[List[Tup class Wolfram(Cog): """Commands for interacting with the Wolfram|Alpha API.""" - def __init__(self, bot: commands.Bot): + def __init__(self, bot: Bot): self.bot = bot @group(name="wolfram", aliases=("wolf", "wa"), invoke_without_command=True) @@ -266,7 +267,7 @@ class Wolfram(Cog): await send_embed(ctx, message, color) -def setup(bot: commands.Bot) -> None: +def setup(bot: Bot) -> None: """Wolfram cog load.""" bot.add_cog(Wolfram(bot)) log.info("Cog loaded: Wolfram") |