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:
@@ -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.
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Hiring(bot))
|
||||
@@ -1 +1,4 @@
|
||||
from .kofishop import setup
|
||||
from .kofishop import KofiShop
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(KofiShop(bot))
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
from .modmail import setup
|
||||
from .modmail import Modmail
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Modmail(bot))
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
from .welcomer import setup
|
||||
from .welcomer import Welcomer
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Welcomer(bot))
|
||||
Reference in New Issue
Block a user