Skip to content

Commit

Permalink
Fix cog import for Red 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeebank committed Jul 1, 2023
1 parent 639690b commit bedcd1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions anisearch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from .anisearch import AniSearch


def setup(bot):
n = AniSearch()
bot.add_cog(n)
async def setup(bot):
await bot.add_cog(AniSearch())
5 changes: 1 addition & 4 deletions anisearch/anisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@
}
"""

BaseCog = getattr(commands, "Cog", object)


class AniSearch(BaseCog):
class AniSearch(commands.Cog):
"""Search for anime, manga, characters and users using Anilist"""

def __init__(self):
Expand Down

0 comments on commit bedcd1f

Please sign in to comment.