From 7ea6a52a6c6eaed194ba1c94d2a8fd816aa6718c Mon Sep 17 00:00:00 2001 From: Unstable Kitsune Date: Tue, 23 Sep 2025 03:18:09 -0400 Subject: [PATCH] Refactor cogs and update author formatting Updated `__init__.py` to import specific cog classes and added asynchronous `setup` functions for each. Modified `info.json` to improve the formatting of the "author" field for better readability. --- hiring/__init__.py | 6 +++--- kofishop/__init__.py | 5 ++++- modmail/__init__.py | 5 ++++- pp/info.json | 3 ++- welcomer/__init__.py | 5 ++++- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/hiring/__init__.py b/hiring/__init__.py index edb2329..2358fa7 100644 --- a/hiring/__init__.py +++ b/hiring/__init__.py @@ -1,4 +1,4 @@ -from .hiring import setup +from .hiring import Hiring -# This function is required for the cog to be loaded by Red. -# It simply imports the setup function from the main cog file. \ No newline at end of file +async def setup(bot): + await bot.add_cog(Hiring(bot)) \ No newline at end of file diff --git a/kofishop/__init__.py b/kofishop/__init__.py index 95e8e8e..391913d 100644 --- a/kofishop/__init__.py +++ b/kofishop/__init__.py @@ -1 +1,4 @@ -from .kofishop import setup \ No newline at end of file +from .kofishop import KofiShop + +async def setup(bot): + await bot.add_cog(KofiShop(bot)) diff --git a/modmail/__init__.py b/modmail/__init__.py index 8b42c3a..9da314e 100644 --- a/modmail/__init__.py +++ b/modmail/__init__.py @@ -1 +1,4 @@ -from .modmail import setup \ No newline at end of file +from .modmail import Modmail + +async def setup(bot): + await bot.add_cog(Modmail(bot)) \ No newline at end of file diff --git a/pp/info.json b/pp/info.json index a407a96..d2108f5 100644 --- a/pp/info.json +++ b/pp/info.json @@ -1,5 +1,6 @@ { - "author": ["kitsunic"], + "author": [ "kitsunic" ], + "name": "PP", "description": "A cog for password protected channels", "end_user_data_statement": "This cog stores user, avatar, and guild data. A simple delete request to bot to remove your data or guild data", "install_msg": "Thanks for installing & testing.", diff --git a/welcomer/__init__.py b/welcomer/__init__.py index 0df88cb..258d880 100644 --- a/welcomer/__init__.py +++ b/welcomer/__init__.py @@ -1 +1,4 @@ -from .welcomer import setup \ No newline at end of file +from .welcomer import Welcomer + +async def setup(bot): + await bot.add_cog(Welcomer(bot)) \ No newline at end of file