Skip to content

Commit

Permalink
Update events.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev authored Dec 24, 2024
1 parent 950c5ec commit 1f3769d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ async def on_slash_command_completion(self, ctx: disnake.ApplicationCommandInter
current_time = int(pend.now(tz=pend.UTC).timestamp())
if self.bot.is_owner(ctx.author):
last_run = None
HOURS = 0
MINUTES = 15
HOURS = 12
MINUTES = 0
run_time_check_seconds = (HOURS * 60 * 60) + (MINUTES * 60)

if last_run is None or current_time - last_run.get('time', 0) >= run_time_check_seconds:
Expand Down

0 comments on commit 1f3769d

Please sign in to comment.