doddz3h / slack-polls

Express.js app for native polling on Slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-polls

An Express.js app for native polling on Slack

Requirements

  1. Two available integration slots (incoming webhook + slash command)
  2. Heroku + MongoLab Add-on (or any other PaaS which uses MongoLab)

Usage

####Create a new poll /poll new {poll title} {poll option} (up to 4 options)

Note: When called, if a poll exists already in the channel you are in, it is replaced with the new poll and all data from the previous poll is erased.

####Cast a vote for an open poll /poll vote {choice}

Note: A user may only vote once. If a vote already exists for that user, it is overwritten by the new vote.

####View the results for an open poll (Public) /poll results

####View the results for an open poll (Private) /poll peek

####In-app help /poll help

Quick Setup

  • Fork this repository
  • Deploy to Heroku (requires MongoLab Add-on)
  • Copy Heroku URL to new slash command integration on Slack
  • Create a new Incoming Webhook integration and copy the webhook URI
  • Open slack and paste /poll setup "YOUR-INCOMING-WEBHOOK-URI"
  • Done.

Notes

  • Once this app is running on Heroku, you may use it in as many different teams as you'd like.
  • Only one active poll may be active (per channel) at any given time.

Todo

  • Enable support for up to 26 poll options (A-Z).

***This app is not affiliated with, or endorsed by, Slack***

About

Express.js app for native polling on Slack

License:MIT License


Languages

Language:JavaScript 100.0%