Skip to content

Client Slack

Keith Sterling edited this page Jan 9, 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

You can then run the slack client with the following script

#! /bin/sh

clear

export PYTHONPATH=../../src:.

python3 ../../src/programy/clients/slack_client.py --config ./config.yaml --cformat yaml --logging ./logging.yaml
Clone this wiki locally