Add API Context to Plugin Context
updated idea of @zbarahal’s PR (PR #20) to reflect the current master.
This commit is contained in:
parent
f785ed9a14
commit
1fb557b178
4 changed files with 21 additions and 4 deletions
10
client.py
Normal file
10
client.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue