This is a basic open source version for Slack.
Functionality based on Simple poll, but you can self host it, to have unlimited polls and choices.
Note: Currently only type of question/poll is supported, where you can vote for multiple choices and remove any of your previous votes
/polly What is my favourite color?|red|green|blue
Will generate the question above.
- Grab a server and install
npmandnode - Grab a mysql database
- Clone the repo
npm i- Feed it some environment variables (either on the machine or in
.envfile)
PORT=3000
DB_URL=localhost
DB_PORT=3306
DB_USER=admin
DB_PASSWORD=yourpassword
DB_NAME=polly
LOG_LEVEL=info
- Accepted log levels:
error,info,debug - Specify your Slack token, details below
- Start it up and save it as a startup process with
pm2if you want - Optionally forward the requests from
80to the app withnginx
- Create a Slack app for your organization
- Create a
Slash commandfeature- The
commandcan be anything, like/polly - The
Request URLshould behttp://yourserver.com/hook Descriptioncan be anything, likeCreate a poll, free and unlimited!Usage hintshould beQuestion?|Answer 1|Answer 2
- The
- Activate the
Interactive Componentsfeature- The
Request URLshould behttp://yourserver.com/action
- The
- At the
OAuth & Permissionsfeature select the scopeusers.profile:read(so the app can get the profile pictures for voters) - Install it to your workspace
- Grab the
OAuth Access Tokenand theVerification Tokenand register the created app athttp://yourserver.com/register
- Grab the
- This way you can have multiple apps using the same polly server (which is needed for different workspaces, unless you want to publish the app)
Feel free to create a PR or fork the repo.
- Single choice poll creation
- Dockerize the server
- Terraform an AWS EC2 and RDS Free Tier instances and to setup the server with a single command
- More configuration options for questions



