Skip to content

Commit

Permalink
ok pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsbirb committed Jan 16, 2024
1 parent a206b6e commit 348a788
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Cogs/Modules/infractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@ async def infract(self, ctx, staff: discord.Member, reason: str, action, notes:
if ctx.author == staff:
await ctx.send(f"{no} **{ctx.author.display_name}**, you can't infract yourself.")
return
types = infractiontypes.distinct("types", {'guild_id': ctx.guild.id})
if types is None:
types = ['Activity Notice', 'Verbal Warning', 'Warning', 'Strike', 'Demotion', 'Termination']

if action not in types:
await ctx.send(f"{no} **{ctx.author.display_name}**, `{action}` is not a valid infraction type.")
return


custom = Customisation.find_one({'guild_id': ctx.guild.id, 'type': 'Infractions'})
random_string = ''.join(random.choices(string.digits, k=8))
Expand Down

0 comments on commit 348a788

Please sign in to comment.