2016-08-07 00:42:37 -07:00
|
|
|
from slackclient import SlackClient
|
|
|
|
from rtmbot import RtmBot
|
|
|
|
|
2016-08-07 01:09:23 -07:00
|
|
|
slack_client = None
|
2016-08-07 00:42:37 -07:00
|
|
|
|
|
|
|
def init(config):
|
2016-08-07 01:46:20 -07:00
|
|
|
global slack_client
|
2016-08-07 00:42:37 -07:00
|
|
|
bot = RtmBot(config)
|
2016-08-07 01:09:23 -07:00
|
|
|
slack_client = bot.slack_client
|
2016-08-07 00:42:37 -07:00
|
|
|
return bot
|