diff options
| -rw-r--r-- | bot/cogs/moderation/infractions.py | 10 | ||||
| -rw-r--r-- | bot/cogs/moderation/management.py | 6 | ||||
| -rw-r--r-- | bot/cogs/moderation/modlog.py | 6 | ||||
| -rw-r--r-- | bot/cogs/moderation/superstarify.py | 6 | 
4 files changed, 2 insertions, 26 deletions
| diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index cf7163c41..63fa9d87a 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -52,9 +52,9 @@ class Infractions(Scheduler, Cog):      @Cog.listener()      async def on_ready(self) -> None:          """Schedule expiration for previous infractions.""" -        # Schedule expiration for previous infractions          infractions = await self.bot.api_client.get( -            'bot/infractions', params={'active': 'true'} +            'bot/infractions', +            params={'active': 'true'}          )          for infraction in infractions:              if infraction["expires_at"] is not None: @@ -554,9 +554,3 @@ class Infractions(Scheduler, Cog):              if User in error.converters:                  await ctx.send(str(error.errors[0]))                  error.handled = True - - -def setup(bot: Bot) -> None: -    """Moderation cog load.""" -    bot.add_cog(Infractions(bot)) -    log.info("Cog loaded: Moderation") diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py index 7c5c5583a..f159082aa 100644 --- a/bot/cogs/moderation/management.py +++ b/bot/cogs/moderation/management.py @@ -256,9 +256,3 @@ class ModManagement(commands.Cog):              if discord.User in error.converters:                  await ctx.send(str(error.errors[0]))                  error.handled = True - - -def setup(bot: commands.Bot) -> None: -    """Load the Infractions cog.""" -    bot.add_cog(ModManagement(bot)) -    log.info("Cog loaded: Infractions") diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 50cb55e33..e929b2aab 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -760,9 +760,3 @@ class ModLog(Cog, name="ModLog"):              Icons.message_edit, Colour.blurple(), "Message edited (After)",              after_response, channel_id=Channels.message_log          ) - - -def setup(bot: Bot) -> None: -    """Mod log cog load.""" -    bot.add_cog(ModLog(bot)) -    log.info("Cog loaded: ModLog") diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py index bc7ec7639..28516dd1c 100644 --- a/bot/cogs/moderation/superstarify.py +++ b/bot/cogs/moderation/superstarify.py @@ -266,9 +266,3 @@ class Superstarify(Cog):          """Randomly select a nickname from the Superstarify nickname list."""          rng = random.Random(str(infraction_id) + str(member_id))          return rng.choice(STAR_NAMES) - - -def setup(bot: Bot) -> None: -    """Superstarify cog load.""" -    bot.add_cog(Superstarify(bot)) -    log.info("Cog loaded: Superstarify") | 
