Skip to content

A maubot plugin that helps with polls in a matrix room. It responds to !poll messages and counts reactions.

License

Notifications You must be signed in to change notification settings

jojoob/maubot_pollar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pollar

A plugin for maubot that helps with polls in a matrix room. It responds to !poll messages and counts reactions.

Screenshot

Usage

Request help from the bot:

!pollhelp

Create a new Poll

!poll "Question" "Choice1" "Choice2"

or

!poll Question
Choice1
Choice2

To use custom emojis just use an emoji for as the first character of a choice

!poll "How are you?" "👍️Good" "👎️Bad"

If you want the bot to just reacting to your message instead of responding with a separate message:

!lightpoll "How are you?" "👍️Good" "👎️Bad"

Display the results of the latest poll in the room

!pollresults

Display the results of the specified poll in the room

!pollresults ID

Users vote by reacting with the corresponding emoji.

Dev

For mac OS:

fswatch poll.py | xargs -I{} bash -c "zip pollar.mbp maubot.yaml poll.py && curl -XPUT http://localhost:29316/_matrix/maubot/v1/plugin/de.jojoob.matrix.pollbot -H 'Authorization: Bearer TOKEN' --data-binary @pollar.mbp

About

A maubot plugin that helps with polls in a matrix room. It responds to !poll messages and counts reactions.

Resources

License

Stars

Watchers

Forks

Languages