Update client.py
small bug with global extension
This commit is contained in:
parent
0fe3cb6bac
commit
0285f67db2
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ from rtmbot import RtmBot
|
|||
slack_client = None
|
||||
|
||||
def init(config):
|
||||
global client
|
||||
global slack_client
|
||||
bot = RtmBot(config)
|
||||
slack_client = bot.slack_client
|
||||
return bot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue