misc(aurora): renamed configuration commands
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s

This commit is contained in:
Seaswimmer 2024-01-15 06:46:12 +00:00
parent e73616774a
commit ad9675e60e
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -10,18 +10,23 @@ class Configuration(Mixin):
"""Configuration commands for Aurora.""" """Configuration commands for Aurora."""
@commands.guild_only() @commands.guild_only()
@commands.group(autohelp=True, aliases=['moderationset', 'modset', 'moderationsettings', 'aurorasettings', 'auroraconfig']) @commands.group(autohelp=True, aliases=['moderation', 'mod'])
async def auroraset(self, ctx: commands.Context): async def aurora(self, ctx: commands.Context):
"""Set Aurora configuration options.""" """Settings and miscellaneous commands for Aurora."""
await ctx.reply(embed=embed(ctx))
@auroraset.group(autohelp=True, name='import') @aurora.command(name="settings", aliases=['config', 'options', 'set'])
@commands.guild_only()
async def aurora_settings(self, ctx: commands.Context):
"""View Aurora configuration settings."""
await ctx.send(embed=await embed(ctx))
@aurora.group(autohelp=True, name='import')
@commands.admin() @commands.admin()
@commands.guild_only() @commands.guild_only()
async def auroraset_import(self, ctx: commands.Context): async def aurora_import(self, ctx: commands.Context):
"""Import moderations from other bots.""" """Import moderations from other bots."""
@auroraset_import.command(name="aurora") @aurora_import.command(name="aurora")
@commands.admin() @commands.admin()
async def auroraset_import_aurora(self, ctx: commands.Context): async def auroraset_import_aurora(self, ctx: commands.Context):
"""Import moderations from another bot using Aurora.""" """Import moderations from another bot using Aurora."""
@ -31,7 +36,7 @@ class Configuration(Mixin):
else: else:
await ctx.send(error("Please provide a valid Aurora export file.")) await ctx.send(error("Please provide a valid Aurora export file."))
@auroraset_import.command(name="galacticbot") @aurora_import.command(name="galacticbot")
@commands.admin() @commands.admin()
async def auroraset_import_galacticbot(self, ctx: commands.Context): async def auroraset_import_galacticbot(self, ctx: commands.Context):
"""Import moderations from GalacticBot.""" """Import moderations from GalacticBot."""