Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 645 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 645 Bytes

Cyril Slack bot

This is Cyril, a bot pairing Slack users connected to our general channel.

We use him to make pairs of people that will have lunch together on fridays.

Installation

Execute:

$ bundle install

Usage

You will need 2 environment variables:

  • WEBHOOK_URL: The Slack Incoming Webhook url
  • SLACK_TOKEN: The Slack Token of an user having access to the general channel, in order to be able to get the list of currently connected users.

Example:

$ WEBHOOK_URL=https://hooks.slack.com/services/XXXX/XXXXX SLACK_TOKEN=xoxp-XXXXXXX ruby cyril.rb