Events/get_voters

From Werewolf Wiki
Jump to navigation Jump to search

The get_voters event is called in numerous places, and is used to get a list of all players who are eligible to vote.

Event callback

def on_get_voters(event: Event, cli: IRCClient, var: module) -> None
  • prevent_default has no effect for this event
  • event: The event object
  • cli: The IRC connection
  • var: Reference to the src.settings module

Event data

{
    "voters": Set[str]
}

The voters set should be updated to only contain players who are eligible to vote.