Welcome to the open source poll for slack.
This repository is hosted on GitLab. Github repository is only a mirror.
But feel free to open new issues on both.
If you have an error when submitting poll, please use the "Add to slack" button on site to re-authorize the bot on your workspace
To upgrade to v3, you need to have a mongo database.
Setup your config/default.json
with new database url and database name:
mongo_url
: the url to connect to your mongo databasemongo_db_name
: your mongo database nameAfter that, migrate your old database to the mongo with the script:
At the root directory, run ./scripts/migrate-v3.sh [MONGO_URL] [MONGO_DB_NAME]
Replace [MONGO_URL]
by the same mongo_url
and [MONGO_DB_NAME]
with the same mongo_db_name
set in your config/default.json
.
As an example, with the default data from config/default.json.dist
, the command line to migrate is:
./scripts/migrate-v3.sh mongodb://localhost:27017 open_poll
The code is under GNU GPL license. So, you are free to modify the code and redistribute it under same license.
Remember the four freedoms of the GPL :
- the freedom to use the software for any purpose,
- the freedom to change the software to suit your needs,
- the freedom to share the software with your friends and neighbors, and
- the freedom to share the changes you make.
/poll "What's your favourite color ?" "Red" "Green" "Blue" "Yellow"
/poll anonymous "What's your favourite color ?" "Red" "Green" "Blue" "Yellow"
/poll limit 2 "What's your favourite color ?" "Red" "Green" "Blue" "Yellow"
/poll hidden "What's your favourite color ?" "Red" "Green" "Blue" "Yellow"
/poll anonymous limit 2 "What's your favourite color ?" "Red" "Green" "Blue" "Yellow"
For both question and choices, feel free to use slack's emoji, *bold*
~strike~
_italics_
and `code`
Wiki pages are available to help you with the app configuration and the web page configuration.
If you have more than 15 options, you will probably raise an error. It's a slack limitation (see issue #24).
To support or thank me, you can contact me. I would be happy to provide you my PayPal address.