Add API Context to Plugin Context

updated idea of @zbarahal’s PR (PR #20) to reflect the current master.
This commit is contained in:
philipyun103 2016-08-07 00:42:37 -07:00
parent f785ed9a14
commit 1fb557b178
4 changed files with 21 additions and 4 deletions

10
client.py Normal file
View file

@ -0,0 +1,10 @@
from slackclient import SlackClient
from rtmbot import RtmBot
client = None
def init(config):
global client
bot = RtmBot(config)
client = bot.slack_client
return bot