Skip to content

Commit

Permalink
fix chat_update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Jun 11, 2024
1 parent 506a96b commit 7d0bb64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ ALLOWED_CHANNEL_IDS="C000000,C000001"

SYSTEM_MESSAGE="너는 AWSKRUG(AWS Korea User Group)에서 친절하게 도움을 주는 구름이(Gurumi)야."

MAX_LEN_SLACK="10000"
MAX_LEN_SLACK="3000"
MAX_LEN_BEDROCK="4000"
4 changes: 2 additions & 2 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def chat_update(say, channel, thread_ts, latest_ts, message="", continue_thread=
app.client.chat_update(channel=channel, ts=latest_ts, text=text)

if continue_thread:
text = text.replace("**", "*") + " " + BOT_CURSOR
text = message.replace("**", "*") + " " + BOT_CURSOR
else:
text = text.replace("**", "*")
text = message.replace("**", "*")

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

0 comments on commit 7d0bb64

Please sign in to comment.