Skip to content

Commit

Permalink
timeoutwars update
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath committed Apr 4, 2024
1 parent fa7b43b commit fc3c92e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cogs/timeout/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ async def on_audit_log_entry_create(self, entry: disnake.AuditLogEntry):
# add timeout manually
length = entry.changes.after.timeout - entry.created_at
length = timedelta(seconds=math.ceil(length.total_seconds())) # round up to seconds
reason = entry.reason or Messages.timeout_manual_timeout
if reason == Messages.timeout_wars_reason:
reason = entry.reason or MessagesCZ.timeout_manual_timeout
if reason == MessagesCZ.timeout_wars_reason:
# timeout was added during timeout wars 1. April
return

Expand Down
2 changes: 1 addition & 1 deletion cogs/timeoutwars.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, bot: commands.Bot):
self.bot = bot
self.immunity: dict[int, datetime] = {}
self.ignored_messages = set()
self.index = 10
self.index = 0

log_file = "timeout_wars"
message_delete = "Smazání zprávy"
Expand Down

0 comments on commit fc3c92e

Please sign in to comment.