Proximyst / ban

A punishment suite for Velocity with focus on simply being the best for the server owner, staff member, player, and developer.
GNU Affero General Public License v3.0
21 stars 5 forks source link

[Suggestion] Discord Announcements #9

Open FawksX opened 3 years ago

FawksX commented 3 years ago

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 ```
Proximyst commented 3 years ago

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.

FawksX commented 3 years ago

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

Proximyst commented 3 years ago

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.