Skip to content

Instantly share code, notes, and snippets.

@anri-c
Created September 12, 2016 08:07
Show Gist options
  • Select an option

  • Save anri-c/cd6067b62369d2d4353f3a5bd42802f1 to your computer and use it in GitHub Desktop.

Select an option

Save anri-c/cd6067b62369d2d4353f3a5bd42802f1 to your computer and use it in GitHub Desktop.
errBot を導入して Slack と連携させてみる ref: http://qiita.com/anri-c/items/95cd9e5fa01253a87410
$ mkvirtualenv -p `which python3` errenv
(errenv) $ pip install errbot
(errenv) $ mkdir mybot
(errenv) $ cd mybot/
(errenv) ~/mybot$ errbot --init
Your Errbot directory has been correctly initialized !
Just do "errbot" and it should start in text/development mode.
(errenv) ~/mybot$ errbot
>>> !tryme
It works !
(errenv) $ pip install slackclient
(errenv) $ vi ~/mybot/config.py
import logging
BACKEND = 'Slack'
-- snip --
BOT_ADMINS = ('@xxxx', )
BOT_IDENTITY = {
'token': 'xoxb-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
}
(errenv) $ errbot --daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment