-
-
Notifications
You must be signed in to change notification settings - Fork 1
✨ tweak: explicitly set bot to online with few other changes #5
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, the changes are good. LGTM.
Thanks @warengonzaga . Have you been able to successfully post to unthread? I've wired everything up but keep getting a 500 when I try to send to unthread. that's the only missing part of the pipeline for me right now. |
Are you referring to sending a message from Unthread to Discord? Or Discord to Unthread? Actually the latest version is tested and it is working in my setup. Did you provide all the credentials needed including adding the webhook to the Unthread settings? |
Otherwise, you can try this @petesiki It is not yet final, but it can help you to get started. |
I'm able to see logs from unthread -> discord, prints the events that are coming in that way, so i think webhook is set up successfully. The issue is from discord -> unthread something in the API call to createTicket is failing. I don't think its an issue with my settings and env vars. If you've tested and confirm it works, i'll try again |
also just tried railway and running into this error deploying. mind having a look? |
@petesiki, that's interesting. What's your Discord username? I will add you and we can discuss this via Discord. I will help you to make this work. |
Is it the creation of the ticket? I tested it today and it works as expected. Also, can you create an issue regarding this I would like to debug this more. @petesiki |
peter_33120 . talk to you soon! |
Added you on Discord, let me know when you received it. |
This pull request includes several changes to improve the functionality and configuration of the project. The most important changes include updates to the webhook URL in the
README.md
, the addition of a new dependency inpackage.json
, setting the bot's status explicitly insrc/events/ready.js
, and changing the default port insrc/index.js
.Configuration updates:
README.md
: Updated the webhook URL tohttp://<YOUR_PUBLIC_URL>:3000/webhook/unthread
to correct the path.src/index.js
: Changed the default port from 5000 to 3000 to align with the expected configuration.Dependency management:
package.json
: Added thecacheable
dependency to the project.Bot functionality:
src/events/ready.js
: Added code to explicitly set the bot's status to 'online' to ensure it appears online to users.