Slash command handler for Disqus slack.
/support- default command returns case status of all important Desk filters/support https://help.disqus.com/agent/case/347519- returns case that matches ID provided 0-7 characters in length/support example@gmail.com- returns most recent case that matches email provided/support help- returns help with commands
- Create your custom Slack slash command configuration.
- Add the following environment variables from your Desk and Slack app:
- subdomain
- consumer_key
- consumer_secret
- token
- token_secret
- slack_token
- sheet_key (optional)
- Configure the following variables and functions in
app.jsto GET your desired data from Desk
statusParams- Object of criteria forcasesAPI call viadeskCall(), parameters available: http://dev.desk.com/API/cases/#fieldscreateStats()- Array.prototype.filter() tests to further segment data fromdeskCall()into specific filters- stats - Object of filter names and variables defined in
createStats()to output up to 20 Slack attachments