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

Multiserver: discord webhook #2663

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Berserker66
Copy link
Member

What is this fixing or adding?

Adds support for Discord WebHook into MultiServer
I tried the Async version, but it seems to block the asyncio loop it's attached to while waiting on a response, so instead of bothering with a threaded asyncio loop I just wrote an explicit thread, I prefer it that way.

How was this tested?

On a private discord.

Since rate limiting is per-IP, this will probably be unusable on archipelago.gg if it's popular, which is fine, maybe it's worthwhile to look into a way to disable this command via webhost config.

If this makes graphical changes, please attach screenshots.

image

@alwaysintreble
Copy link
Collaborator

alwaysintreble commented Jan 3, 2024

Since rate limiting is per-IP, this will probably be unusable on archipelago.gg if it's popular, which is fine, maybe it's worthwhile to look into a way to disable this command via webhost config.

Just to leave the comment, we probably just have it disabled from custom server with some sort of admin command that you can use for the big async? i know people would love to have that, though the channel it'll log to will probably end up mostly unusable, it'll at least be searchable. i wouldn't be surprised if that alone greatly exceeded the rate limiting though.

MultiServer.py Outdated Show resolved Hide resolved
@alwaysintreble alwaysintreble added is: enhancement Issues requesting new features or pull requests implementing new features. affects: core Issues/PRs that touch core and may need additional validation. labels Jan 5, 2024
@PoryGone PoryGone added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Feb 10, 2024
@Exempt-Medic Exempt-Medic added the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label Apr 5, 2024
Copy link
Collaborator

@qwint qwint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't fully review the code but did use the webhook in a private discord and it worked as expected

@Exempt-Medic Exempt-Medic removed the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants