Skip to main content

Module polls

Module polls 

Source
Expand description

Poll functionality for the Streamocracy bot

Modules§

votekick
Votekick poll implementation

Structs§

PollInfo
Poll metadata stored while poll is active.

Statics§

ACTIVE_POLLS 🔒

Traits§

Poll
Trait for reaction-based polls.

Functions§

complete_poll 🔒
Complete a poll by counting votes and calling on_complete.
get_reaction_count 🔒
Count users who reacted with a specific emoji, excluding the bot.
schedule_poll_completion
Schedule a poll to complete after its duration.
send_temporary_message
Send a message that auto-deletes after a specified number of seconds.

Type Aliases§

ActivePolls 🔒
Thread-safe storage for active polls