From cac7b8b892ce8f11d972be694f4bf0b70123073e Mon Sep 17 00:00:00 2001 From: Alex Huddleston Date: Thu, 27 Jun 2019 11:41:03 -0500 Subject: [PATCH] Fixed crash, realized I need to invite bot to channel with /invite @[bot name] --- slack-bot-testing.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slack-bot-testing.py b/slack-bot-testing.py index da35bba..f29da86 100644 --- a/slack-bot-testing.py +++ b/slack-bot-testing.py @@ -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')