Difference between revisions of "Discord webhooks"

From Beasts of Bermuda
Jump to: navigation, search
Line 9: Line 9:
 
<br>
 
<br>
 
=Setting webhooks up=
 
=Setting webhooks up=
First of all, you will need to [https://docs.gitlab.com/ee/user/project/integrations/discord_notifications.html Create discord webhooks on your Discord server].
+
First of all, you will need to [https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks 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.
 
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.
  
Line 44: Line 44:
 
Now, do not run away so soon! We will go through these settings together.
 
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>
 
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].
+
We will use the chat webhook as an example. Create the chat webhook on your discord server according to the [https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks discord documentation]. Then, fill up the config setting named <syntaxhighlight lang="ini">ChatReportDiscordWebhook</syntaxhighlight> with the link you have just copy-pasted. Then, remove everything before the first numbers so your setting looks like the following: <syntaxhighlight lang="ini">ChatReportDiscordWebhook="12345679101112/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"</syntaxhighlight>

Revision as of 17:27, 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. Then, fill up the config setting named

ChatReportDiscordWebhook

with the link you have just copy-pasted. Then, remove everything before the first numbers so your setting looks like the following:

ChatReportDiscordWebhook="12345679101112/examplekey_dwdhwaowdawbdwaowdcic11938374-ce"