Skip to content

Commit

Permalink
Merge pull request #19 from raphaelncampos/master
Browse files Browse the repository at this point in the history
changing to os.environ.get
  • Loading branch information
orliesaurus committed May 25, 2019
2 parents d80cc0d + 6e9dc1d commit d1ca85f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

###VARIABLES THAT YOU NEED TO SET MANUALLY IF NOT ON HEROKU#####
try:
MESSAGE = os.environ['WELCOME_MESSAGE']
TOKEN = os.environ['SLACK_TOKEN']
CHANNEL_TOKEN = os.environ['CHANNEL_TOKEN']
UNFURL = os.environ['UNFURL_LINKS']
MESSAGE = os.environ.get('WELCOME_MESSAGE')
TOKEN = os.environ.get('SLACK_TOKEN')
CHANNEL_TOKEN = os.environ.get('CHANNEL_TOKEN')
UNFURL = os.environ.get('UNFURL_LINKS')
RESPONSE_CHANNEL = os.environ.get('RESPONSE_CHANNEL')
DEBUG_CHANNEL_ID = os.environ.get('DEBUG_CHANNEL_ID', False)
except:
Expand Down Expand Up @@ -116,4 +116,4 @@ def on_open(ws):
r = start_rtm()
ws = websocket.WebSocketApp(r, on_message = on_message, on_error = on_error, on_close = on_close)
#ws.on_open
ws.run_forever()
ws.run_forever()

0 comments on commit d1ca85f

Please sign in to comment.