Skip to content

Commit

Permalink
Merge pull request #28 from nalbam/main
Browse files Browse the repository at this point in the history
Refactor chat_update function to improve performance and add consiste…
  • Loading branch information
nalbam authored Sep 5, 2024
2 parents 39554c9 + 01a21ce commit 9fa9e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def chat_update(say, channel, thread_ts, latest_ts, message="", continue_thread=
# Update the message
app.client.chat_update(channel=channel, ts=latest_ts, text=text)
else:
time.sleep(0.3)
time.sleep(1)

# New message
result = say(text=text, thread_ts=thread_ts)
Expand Down

0 comments on commit 9fa9e58

Please sign in to comment.