applidium / cyril

Bot pairing Slack users connected to the general channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Bot pairing Slack users connected to the general channel


Languages

Language:Ruby 100.0%