Events/abstain

From Werewolf Wiki
Jump to navigation Jump to search

The abstain event is called whenever someone votes to not lynch anyone today.

Event callback

def on_abstain(event: Event, cli: IRCClient, var: module, nick: str) -> None
  • The default action is to allow the vote to be placed, if the default action is prevented the vote is not placed. It is the event handler's responsibility to somehow inform the player why the command did not work.
  • event: The event object
  • cli: The IRC connection
  • var: Reference to the src.settings module
  • nick: Person executing the !abstain command

Event data

None