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

support for chat #26

Open
catdsnny opened this issue Dec 11, 2024 · 2 comments
Open

support for chat #26

catdsnny opened this issue Dec 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@catdsnny
Copy link

Any thoughts on the level of difficulty to support chat responses? Happy to contribute if you have some general guidance on what parts are needed to add.

@a-gubskiy
Copy link
Owner

Hi! Please describe this feature in detail so I can plan to integrate it.

@a-gubskiy a-gubskiy added the enhancement New feature or request label Jan 12, 2025
@catdsnny
Copy link
Author

After some research it seems this is more of an implementation specific thing, although you might be able to create a class that has some of the scaffolding and let people implement callbacks. The gist of it is that there is no support for chat api generally in bluesky. You have to poll the api for conversations, see if there are new ones and then respond to those and save the most recent ID which was responded to, by person. Below is a chatbot which I found that integrates with chatgpt - basically you send a dm to the account and it replies with a prompt plus whatever you said to it. In my case I am implementing an online game and I wanted to support interaction via DM, so this is the overall design which I am using. Note that the credentials are your actual username and password, and the API is their private DM server.

This is from one of the bluesky developers:
https://github.com/mozzius/yapper/blob/main/src/index.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants