Skip to content

Commit 26311f8

Browse files
Stephen Frenchseratch
authored andcommitted
the timestamp for Slack-post never changes, it is effectivly an ID
1 parent 79ce27b commit 26311f8

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • tutorial/PythOnBoardingBot

tutorial/PythOnBoardingBot/app.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def update_emoji(payload):
8888
# Post the updated message in Slack
8989
updated_message = slack_web_client.chat_update(**message)
9090

91-
# Update the timestamp saved on the onboarding tutorial object
92-
onboarding_tutorial.timestamp = updated_message["ts"]
93-
9491

9592
# =============== Pin Added Events ================ #
9693
# When a users pins a message the type of the event will be 'pin_added'.
@@ -117,9 +114,6 @@ def update_pin(payload):
117114
# Post the updated message in Slack
118115
updated_message = slack_web_client.chat_update(**message)
119116

120-
# Update the timestamp saved on the onboarding tutorial object
121-
onboarding_tutorial.timestamp = updated_message["ts"]
122-
123117

124118
# ============== Message Events ============= #
125119
# When a user sends a DM, the event type will be 'message'.

0 commit comments

Comments
 (0)