ubot2/client.py
philipyun103 1fb557b178 Add API Context to Plugin Context
updated idea of @zbarahal’s PR (PR #20) to reflect the current master.
2016-08-07 00:42:37 -07:00

10 lines
184 B
Python

from slackclient import SlackClient
from rtmbot import RtmBot
client = None
def init(config):
global client
bot = RtmBot(config)
client = bot.slack_client
return bot