Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always reply in existing threads #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rzumer
Copy link

@rzumer rzumer commented Oct 12, 2023

In my opinion there is no reason for the bot to be replying to a message sent in a thread directly in the channel. replyInThread() is not adequate because it always creates a new thread if there isn't one already (plus it is annoying to use in conjunction with other drivers that don't have that function).

Keeping things simple, set the thread when building the payload for the reply. If using replyInThread(). This also reverts botman/botman#328 since the thread ID will be overridden in buildServicePayload() if it already exists anyway.

Applying unrelated StyleCI diff in the same commit.

@rzumer rzumer force-pushed the reply-in-existing-threads branch from c1e2a14 to 08859c5 Compare October 12, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant