DiscordSRV

DiscordSRV

86.8k Downloads

Mention specific user/role when a specific console message is sent

Collin-M opened this issue ยท 1 comments

commented

I would like to see a feature of DiscordSRV where we can customize an alert to be sent to Discord with a tag (I.E. @Administrator ALERT: ).

The specific alert should be able to be customized with regex matching or at bare minimum by matching a specific prefix of the log message.

Example: When a player moves too quickly:
[Fri, 13. Dec 2019 WARN] player moved too quickly! xxx, xxx, xxx
would be
[Fri, 13. Dec 2019 WARN] @Administrator ALERT! player moved too quickly! xxx, xxx, xxx

Example: When server is lagging:
[Fri, 13. Dec 2019 WARN] Can't keep up! Is the server overloaded? Running 5034ms or 100 ticks behind
would be
[Fri, 13. Dec 2019 WARN] @Administrator ALERT! Can't keep up! Is the server overloaded? Running 5034ms or 100 ticks behind

commented

Merging with #616