Fixed crash, realized I need to invite bot to channel with /invite @[bot name]

This commit is contained in:
Alex Huddleston 2019-06-27 11:41:03 -05:00
parent e95ac32d21
commit cac7b8b892

View file

@ -15,7 +15,7 @@ print('I am running.')
@slack.RTMClient.run_on(event='message')
def say_hello(**payload):
print('I\'m in.')
print(payload['data'])
data = payload['data']
web_client = payload['web_client']
rtm_client = payload['rtm_client']
@ -27,8 +27,7 @@ def say_hello(**payload):
web_client.chat_postMessage(
channel=channel_id,
text="Hi <@{user}>!",
thread_ts=thread_ts
text=f"Hi <@{user}>!",
)
except:
print('lmao wtf')