Events/get_voters
< Events
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 objectcli
: The IRC connectionvar
: 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.