-
Notifications
You must be signed in to change notification settings - Fork 20
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
treehouses message discord
new subcommands using Oauth-Bot/Websockets (fixes #2154)
#2155
base: master
Are you sure you want to change the base?
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.
Yah, I should've been more explicit in the instructions that you need a client id set up before using the communication commands. Or I could create an error handler 🤔 |
treehouses message discord
new subcommands using Oauth-Bot/Webhooks (fixes #2154)treehouses message discord
new subcommands using Oauth-Bot/Websockets (fixes #2154)
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.
With this new code, if you want to send a message you'll need to use the message discord ws
after setting and authorizing your token plus have wscat installed.
The script is still buggy, but to send message with the websocket replacement:
Then the rest of the commands are the same from the discord apitoken branch. |
This PR is similar to #2151 but instead of a user-token, a Bot token would be used to access the discord client and webhooks would be used to send messages to your channel.
NOTE: To send a message to your chosen channel, make sure you are the owner of the server and have a webhook integrated to that channel. See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks for setting up a webhook.