diff --git a/cogs/timeout/cog.py b/cogs/timeout/cog.py index 305d8d1de..fa711b114 100644 --- a/cogs/timeout/cog.py +++ b/cogs/timeout/cog.py @@ -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 diff --git a/cogs/timeoutwars.py b/cogs/timeoutwars.py index e67252a62..ef5405dde 100644 --- a/cogs/timeoutwars.py +++ b/cogs/timeoutwars.py @@ -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"