Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Add features: bot reactions, user defined reactions, line break syntax #7

Merged
merged 4 commits into from
Jan 20, 2021

Conversation

jojoob
Copy link
Contributor

@jojoob jojoob commented Jan 13, 2021

I've implemented the following features:

  • bot reactions the bot reacts with the emojis of all answers to its reply. This makes it easier for users to react with the correct emoji
  • user defined emojis for answers If the first character of an answer is an emoji it will be used by the bot as the reaction to vote (maybe solves Option to not randomize the emojis? #5)
  • line break syntax as an alternative to the current syntax for !poll new "Question" "Answer" "Answer" depending on if the first character is a " (solves Use line break as alternative items separator #2):
    !poll new Question
    Answer
    Answer
    

Let me know if you like the feature implementations.

Alternative syntax for poll creation:
"!poll new Question?
Answer 1
Answer 2"
Let the poll bot react to its own poll messages. Makes it easier for the user to choose the right reaction to vote.
If first character of an answer option is am emoji use this for the vote reaction.
Emoji detection is implemented by a incomplete regex - i.e. not all emojis are supported.
@jojoob
Copy link
Contributor Author

jojoob commented Jan 18, 2021

Also created my own poll bot plugin: https://github.com/jojoob/maubot_pollar 😀

@TomCasavant TomCasavant merged commit 21340a4 into TomCasavant:master Jan 20, 2021
@TomCasavant
Copy link
Owner

Awesome, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants