Update client.py

small bug with global extension
This commit is contained in:
Philip Yun 2016-08-07 01:46:20 -07:00 committed by GitHub
parent 0fe3cb6bac
commit 0285f67db2

View file

@ -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