slack-invoker

Invoke Python functions from Slack


License
Apache-2.0
Install
pip install slack-invoker==0.1.4

Documentation

slack_invoker

Invoke Python functions from Slack

Installation

pip3 install slack_invoker

Using the library

slack_invoker currently only supports the creation of Slack bot users via the RTM API.

The sample_bot shows how you can set up a simple bot user which accepts messages when it is mentioned, parses the messages using an argparse argument parser, passes these arguments to a Python function, and displays the result in Slack.

The Slack documentation has more information on how to create a bot user.

The sample bot requires you to export your Bot User OAuth Access Token (provided on https://api.slack.com once you create the bot user) as the SLACK_BOT_USER_ACCESS_TOKEN environment variable.