Source code for bot_api.events.skipped_turn_event
from dataclasses import dataclass
from .bot_event import BotEvent
[docs]
@dataclass(frozen=True, repr=True)
class SkippedTurnEvent(BotEvent):
"""
Represents an event triggered when the bot has skipped a turn.
This event occurs when the bot fails to take its turn within the allotted time frame.
"""
@property
def critical(self) -> bool:
"""
Indicates whether this event is critical.
Returns:
bool: Always returns True, as skipping a turn is considered a critical event.
"""
return True