Skip to content

Commit

Permalink
Update GameLogging.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahCxrest authored Jan 7, 2025
1 parent 29de4af commit 88518bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/GameLogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def staff_request(self, ctx: commands.Context, reason: str):

staff_clocked_in = await self.bot.shift_management.shifts.db.count_documents({"EndEpoch": 0, "Guild": ctx.guild.id})
if staff_requests.get("min_staff") is not None and staff_requests.get("min_staff") > 0:
if staff_clocked_in >= staff_requests.get("min_staff", 0):
if staff_clocked_in <= staff_requests.get("min_staff", 0):
return await ctx.send(
embed=discord.Embed(
title="Minimum Staff",
Expand All @@ -136,7 +136,7 @@ async def staff_request(self, ctx: commands.Context, reason: str):
)

if staff_requests.get("max_staff") is not None and staff_requests.get("max_staff") > 0:
if staff_clocked_in < staff_requests.get("max_staff", 0):
if staff_clocked_in > staff_requests.get("max_staff", 0):
return await ctx.send(
embed=discord.Embed(
title="Maximum Staff",
Expand Down

0 comments on commit 88518bf

Please sign in to comment.