Skip to main content

relay2slack is a tool for capturing and forwarding incoming Slack webhook events

Project description

relay2slack
======

relay2slack is a tool for capturing and forwarding incoming Slack webhook events.


Installation
------------
To install relay2slack, simply:

.. code-block:: bash

$ pip install relay2slack

To run relay2slack in the foreground:

.. code-block:: bash

$ relay2slack

If you would like to daemonize relay2slack, refer to `docs/ <docs/>`_ for supported methods.


Usage
-----
For whichever service you would like to product webhook events, instead point it to http://localhost:5000/relay with the normal JSON object you expect to send to Slack. For example:

.. code-block:: bash

curl -X POST -d 'payload={"channel":"@blaketmiller","username":"My service","icon_emoji":":warning:","text":"Hello world"}' http://localhost:5000/relay

relay2slack receives that request and forwards the posted JSON object onto the actual Slack webhook endpoint that you provide it in `SLACK_TOKEN`.

Project details


Download files

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

Source Distribution

relay2slack-0.3.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file relay2slack-0.3.tar.gz.

File metadata

  • Download URL: relay2slack-0.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for relay2slack-0.3.tar.gz
Algorithm Hash digest
SHA256 9b4275a5c89a4078d9ab6d2b50c7d1c42d6255962d1b404cd51d3f1de1db4937
MD5 3b4bf9a386ab482b1838d6378097c96c
BLAKE2b-256 ff9c029540267a71b3056498bf12808a24db3ca103959dea50ee10c984e12fa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page