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.
This commit is contained in:
2025-09-23 03:18:09 -04:00
parent 65ddb244fe
commit 7ea6a52a6c
5 changed files with 17 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
from .hiring import setup from .hiring import Hiring
# This function is required for the cog to be loaded by Red. async def setup(bot):
# It simply imports the setup function from the main cog file. await bot.add_cog(Hiring(bot))

View File

@@ -1 +1,4 @@
from .kofishop import setup from .kofishop import KofiShop
async def setup(bot):
await bot.add_cog(KofiShop(bot))

View File

@@ -1 +1,4 @@
from .modmail import setup from .modmail import Modmail
async def setup(bot):
await bot.add_cog(Modmail(bot))

View File

@@ -1,5 +1,6 @@
{ {
"author": [ "kitsunic" ], "author": [ "kitsunic" ],
"name": "PP",
"description": "A cog for password protected channels", "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", "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.", "install_msg": "Thanks for installing & testing.",

View File

@@ -1 +1,4 @@
from .welcomer import setup from .welcomer import Welcomer
async def setup(bot):
await bot.add_cog(Welcomer(bot))