Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Extend demo to show how to have a bot reply to threads without going into an infinite loop #9

Open
LrWm3 opened this issue Apr 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@LrWm3
Copy link

LrWm3 commented Apr 26, 2023

In the current demo, the bot will respond to messages in a channel, but it won't respond to threads.

I think a lot of conversational / message use-cases would want to have bots able to handle both of these cases.

I was able to get this to work by filtering out on the bots user_id directly (a comment states user_id == null filters out bots, but for some reason my bot had a valid user_id) but it might be nice to have this example show how to write a bot which can work in threads as well without an infinite loop of replies to itself.

I think a lot of natural language type bots might work better for this kind of flow?

@LrWm3 LrWm3 changed the title Demonstrate how to have a bot reply to threads Extend demo to show how to have a bot reply to threads without going into an infinite loop Apr 26, 2023
@misscoded misscoded added the enhancement New feature or request label Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants