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

Fix Pi Unauthorized error #383

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Fix Pi Unauthorized error #383

merged 1 commit into from
Jul 12, 2023

Conversation

tanchekwei
Copy link
Contributor

I found that in the latest version, the Pi should be enabled by default, but it is still disabled due to checkAvailability.

So, I have updated it to simply return true, since the bot allows anonymous anyway.

I also found Pi possible to return 401 error when user send message for the first time.

This error can be fixed by visiting the Pi website and waiting for the Pi introduction.

Therefore, I have added a message asking users to visit the Pi website.

image
image

@vercel
Copy link

vercel bot commented Jul 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chatall ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2023 2:34pm

src/bots/PiBot.js Outdated Show resolved Hide resolved
@sunner
Copy link
Member

sunner commented Jul 12, 2023

Thank you

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.

2 participants