Difference between revisions of "Discord webhooks"

From Beasts of Bermuda
Jump to: navigation, search
Line 1: Line 1:
 
=Using [https://discord.com Discord] webhooks=
 
=Using [https://discord.com Discord] webhooks=
 
;Beats of Bermuda, as of recently, supports Discord webhooks to better moderate your dedicated servers. For its setup, you will need:
 
;Beats of Bermuda, as of recently, supports Discord webhooks to better moderate your dedicated servers. For its setup, you will need:
;-To implement Discord webhooks on your Discord Server.
+
*-To implement Discord webhooks on your Discord Server.
;-To set up your Beasts of Bermuda Server server to communicate with your Discord server through a config setup.
+
*-To set up your Beasts of Bermuda Server server to communicate with your Discord server through a config setup.
  
 
With the Discord Webhooks, you can track your server(s) activity live and monitor '''chat, combat, group activity, logins/logouts, and admin command usage'''.
 
With the Discord Webhooks, you can track your server(s) activity live and monitor '''chat, combat, group activity, logins/logouts, and admin command usage'''.
Line 40: Line 40:
 
bUseCombatActivityWebhook=False''
 
bUseCombatActivityWebhook=False''
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
Now, do not run away so soon! We will go through these settings together.
 +
The first thing you need to know, is that the webhook link automatically parses the link to the discord API. This means you only want to use part of the link provided by discord webhooks.<br>
 +
We will use the chat webhook as an example. Create the chat webhook on your discord server according to the [https://docs.gitlab.com/ee/user/project/integrations/discord_notifications.html discord documentation].

Revision as of 17:20, 13 July 2021

Using Discord webhooks

Beats of Bermuda, as of recently, supports Discord webhooks to better moderate your dedicated servers. For its setup, you will need
  • -To implement Discord webhooks on your Discord Server.
  • -To set up your Beasts of Bermuda Server server to communicate with your Discord server through a config setup.

With the Discord Webhooks, you can track your server(s) activity live and monitor chat, combat, group activity, logins/logouts, and admin command usage. These feeds can be put in separate private moderation channels, or all in the same spot and/or using the same Discord Webhook (not recommended).

Setting webhooks up

First of all, you will need to Create discord webhooks on your Discord server. Once that is done, open the Game.ini file, located under your {installFolder}/BeastsOfBermuda/Saved/Config/WindowsServer. If it does not exist, create it under this location.

Set the config up
- First of all, Copy-Paste the following text if it is not already there

[GameReporter]
ChatReportDiscordWebhook="123456/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"
ChatReportIconURL=""
LoginDiscordWebhook="123456/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"
LoginDiscordIconURL=""
AdminCmdDiscordWebhook="123456/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"
AdminCmdDiscordIcon=""
GroupActivityDiscordWebhook="123456/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"
GroupAtivityDiscordIconURL=""
CombatActivityDiscordWebhook="123456/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"
CombatActivityDiscordIconURL=""
bUseChatWebhook=False
ChatWebhookFormatStyle="[:x01]<{PlayerInfo}>[:x01] <ChatMode={ChatMode}> **>** _{msg}_"

bUseLoginReportWebhook=False
LoginReportFormatStyle="Player [:x01]<{PlayerInfo}>[:x01] joined server _{Server}_\n----"
LogoutReportFormatStyle="Player [:x01]<{PlayerInfo}>[:x01] left server _{Server}_, played for {Hours} hours and {Minutes} minutes.\n----"

bUseAdminCommandUsageWebhook=False
AdminCommandUsageFormatStyle="Player [:x01]<{PlayerInfo}>[:x01] used command [:x01]{Cmd}[:x01]\n----"

bUseGroupActivityWebhook=False

bUseCombatActivityWebhook=False''


Now, do not run away so soon! We will go through these settings together. The first thing you need to know, is that the webhook link automatically parses the link to the discord API. This means you only want to use part of the link provided by discord webhooks.
We will use the chat webhook as an example. Create the chat webhook on your discord server according to the discord documentation.