From 6d12982b76d19ad526e919b50b86c88c699e2b23 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Sat, 18 Jun 2022 02:36:59 +0000 Subject: [PATCH] Discord GE offer notifications via webhook This is disabled by default unless server config server.discord_webhook is set to a discord webhook URL --- Server/.run/Run Server.run.xml | 4 +- Server/src/main/kotlin/discord/Discord.kt | 128 ++++++++++++++++++ .../src/main/kotlin/rs09/ServerConstants.kt | 3 + .../main/kotlin/rs09/game/ge/GrandExchange.kt | 9 ++ .../kotlin/rs09/game/ge/GrandExchangeOffer.kt | 3 +- .../game/system/config/ServerConfigParser.kt | 1 + 6 files changed, 145 insertions(+), 3 deletions(-) create mode 100644 Server/src/main/kotlin/discord/Discord.kt diff --git a/Server/.run/Run Server.run.xml b/Server/.run/Run Server.run.xml index ea794964d..102891e4b 100644 --- a/Server/.run/Run Server.run.xml +++ b/Server/.run/Run Server.run.xml @@ -2,8 +2,8 @@