Events/night_acted
< Events
Jump to navigation
Jump to search
The night_acted event is called whenever a role needs to determine if someone acted at night (for example, werecrow). As such, it may be called multiple times a night (typically in the course of executing the transition_day event).
Event callback
def on_night_acted(event: Event, cli: IRCClient, var: module, target: str, actor: str) -> None
- prevent_default has no effect for this event
event
: The event objectcli
: The IRC connectionvar
: Reference to the src.settings moduletarget
: Nick being checked to see if they actedactor
: Nick doing the checking
Event data
{
"acted": bool
}
The acted bool is initialized to False, and should be set to True if that target acted at night.