1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

chore: Update birthday, welcome, boost, and level module configuration commands

This commit is contained in:
wlinator 2024-08-03 14:27:42 -04:00
parent 23d59175e1
commit 9a08d346c5

View file

@ -96,16 +96,14 @@ class Config(commands.Cog):
guild_only=True,
default_member_permissions=discord.Permissions(manage_guild=True),
)
birthday_config = config.create_subgroup(name="birthdays")
welcome_config = config.create_subgroup(name="greetings")
boost_config = config.create_subgroup(name="boosts")
level_config = config.create_subgroup(name="levels")
@config.command(name="show")
async def config_command(self, ctx):
await c_show.cmd(ctx)
@birthday_config.command(name="channel")
birthday_config = config.create_subgroup(name="birthdays")
@config.command(name="birthdays")
async def config_birthdays_channel(self, ctx, channel: discord.TextChannel):
await c_birthday.set_birthday_channel(ctx, channel)
@ -113,6 +111,8 @@ class Config(commands.Cog):
async def config_birthdays_disable(self, ctx):
await c_birthday.disable_birthday_module(ctx)
welcome_config = config.create_subgroup(name="greetings")
@welcome_config.command(name="channel")
async def config_welcome_channel(self, ctx, channel: discord.TextChannel):
await c_greet.set_welcome_channel(ctx, channel)
@ -126,6 +126,8 @@ class Config(commands.Cog):
async def config_welcome_template(self, ctx, text):
await c_greet.set_welcome_template(ctx, text)
boost_config = config.create_subgroup(name="boosts")
@boost_config.command(name="channel")
async def config_boosts_channel(self, ctx, channel: discord.TextChannel):
await c_boost.set_boost_channel(ctx, channel)
@ -144,6 +146,8 @@ class Config(commands.Cog):
async def config_boosts_image(self, ctx, url):
await c_boost.set_boost_image(ctx, url)
level_config = config.create_subgroup(name="levels")
@level_config.command(name="channel")
async def config_level_channel(self, ctx, channel: discord.TextChannel):
await c_level.set_level_channel(ctx, channel)