Skip to main content

Parsely slackbot is a slack custom integration that uses the Parsely API to allow realtime Slackalytics in your Slack instance.

Project description

Parsely slackbot is an open-source slack custom integration that uses the Parsely API to allow realtime Slackalytics in your Slack instance!

Installation

  1. Head over to the custom integrations section of your Slack team and add a “Slash Commands” integration.
  2. In the “command” section, put “/parsely” (without quotes..
  3. in the “URL” field, enter the URL your slackbot will be running on (Make sure to specify the port in the style of http://slackbot.com:6000. (The default port is 6000 for the slackbot)
  4. The rest of the fields can be left as their defaults (though feel free to change the name and portrait for the bot)
  5. on the server pointed to in #3, run:

` pip install parsely-slackbot `

and then run:

` parsely_slackbot `

The bot will generate a sample config.yaml for you, which you can then edit as necessary with your own values that you pulled above.

Note: The lightweight server shipped with Flask has worked quite well in testing for small and mid-sized teams. For larger teams (and as a best practice in general), you might want to look into a more robust WSGI server like gunicorn so as not to experience stability issues.

Usage

/parsely meta, time

examples:

/parsely posts, 10m returns top posts for last 10 minutes

/parsely sections, 1h returns top sections for last hour

/parsely tags, today returns top tags for today

for posts, you can further filter posts by specifying the meta to filter on with a colon.

examples:

/parsely posts, section: News, 1h returns top posts in the News section for the past hour

/parsely posts, tag: article, 25m returns top posts with the article tag for the past 25 minutes

please note that the metas are case sensitive and must be written exactly as they appear in the dashboard.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for parsely-slackbot, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size parsely-slackbot-1.0.1.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page