Compare commits

...

2 commits

Author SHA1 Message Date
ad9675e60e
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
2024-01-15 06:46:12 +00:00
e73616774a
fix(aurora): fixed missing return 2024-01-14 06:41:11 +00:00
2 changed files with 14 additions and 8 deletions

View file

@ -747,6 +747,7 @@ class Aurora(Configuration, commands.Cog, metaclass=CompositeMetaClass):
if case_dict['moderation_type'] in ['UNMUTE', 'UNBAN']: if case_dict['moderation_type'] in ['UNMUTE', 'UNBAN']:
await interaction.response.send_message(content=error("You cannot resolve this type of moderation!"), ephemeral=True) await interaction.response.send_message(content=error("You cannot resolve this type of moderation!"), ephemeral=True)
return
if case_dict['moderation_type'] in ['MUTE', 'TEMPBAN', 'BAN']: if case_dict['moderation_type'] in ['MUTE', 'TEMPBAN', 'BAN']:
if case_dict['moderation_type'] == 'MUTE': if case_dict['moderation_type'] == 'MUTE':

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."""