Skip to content

Client Slack

Keith Sterling edited this page Feb 26, 2019 · 4 revisions

Slack is a cloud-based set of proprietary team collaboration tools and services, founded by Stewart Butterfield. Slack began as an internal tool used by their company, Tiny Speck, in the development of Glitch, a now-defunct online game. The name is an acronym for "Searchable Log of All Conversation and Knowledge"

For an introduction on how to configure your Slack bot for integration with Program-Y read the Slack Documentation

The client only requires a single setting in config.yaml. The polling interval for which to check for news messages. This is set as follows

slack:
  polling_interval: 1

Slack also requires you to pass a token which is created when you register your bot with Slack. This token is then added to license.keys file as follows

SLACK_TOKEN = XXXXXX

To run the Facebook client, you can use the shell script in Y-Bot scripts folder

./y-bot-slack.sh

Or you can use the command line

python3 -m programy.clients.polling.slack.client --config <PATH TO CONFIG> --cformat yaml --logging <PATH TO LOGGING>
Clone this wiki locally