KazuAlex / openpollslack

Open source poll slack app
69 stars 20 forks source link

Option to not display votes in real time #12

Open anze-gn opened 4 years ago

anze-gn commented 4 years ago

Thank you for making this awesome slack app and making it open source! I was wondering if it is possible to extend this app to have an option to not display votes in real time? I have several ideas how to achieve this:

  1. a button, which is visible only for the creator of the poll, when clicked toggles the display of votes
  2. the creator of the poll closes the poll and then the votes are displayed
  3. the poll is automatically closed when the specified number of users vote and then the votes are displayed
  4. the poll is opened only for the specified amount of time and then it is automatically closed and the votes are displayed

I can help with extending the app, but I have no experience with slack apps.

KazuAlex commented 4 years ago

Hello,

I think this is possible (and good idea)

I distinguish two features :

But before adding more options to the slack bot, i want to add this feature https://api.slack.com/surfaces/modals (creating poll over a modal)

After that, the most tricky part is about building blocks. If you want to help, you can found documentation here : https://api.slack.com/block-kit/building All the other parts are just JavaScript ;)