ban icon indicating copy to clipboard operation
ban copied to clipboard

[Suggestion] Discord Announcements

Open FawksX opened this issue 5 years ago • 3 comments

Discord Integration

Suggestion is to have a similar suggestion to popular Bungeecord plugin BanAnnouncer

The idea is simple; If enabled in the config and a token and channel id is given it automatically publishes the punishment details to discord when the punishment occurs.

Another idea, related to this, is having punishments based on server sent to different channels.

Example Config:

discord:
    enabled: true
    token: someToken
    channels:
        server1: 697067636684750918
        server2: 764114920895676518
        server3: 764114920895676518 // Demonstrates you could (in theory) have the more than one server going to two channels ```

FawksX avatar Nov 03 '20 17:11 FawksX

The plan is to have a strong and stable API with events (fired with Velocity's event executor) to let 3rd party plugins handle this.

I don't want the "but IRC? Slack? Rocket? XMPP? etc." complaints by supporting Discord in specific.

An official "extension" plugin may be provided for this functionality (& general webhooks?), but that will have to be revisited. Due to this, I'll leave the issue open.

Proximyst avatar Nov 06 '20 07:11 Proximyst

The main reason for Discord exclusively in my suggestion is that, as someone who runs servers, staff teams do not operate outside of them as they are primarily made of people either non-tech enthusiastic, or younger people who do not understand services like IRC/Slack. I'd say 99% of servers use Discord Staff Servers as their main communication center

Nonetheless, I understand your concern

FawksX avatar Nov 06 '20 11:11 FawksX

That's precisely why I'd consider having an official plugin for explicitly doing Discord webhooks. It'd also serve as a good example of how to use the API.

Proximyst avatar Nov 06 '20 14:11 Proximyst