Events/night_acted

From Werewolf Wiki
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 object
  • cli: The IRC connection
  • var: Reference to the src.settings module
  • target: Nick being checked to see if they acted
  • actor: 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.