Difference between revisions of "Discord webhooks"
Bermudabeast (talk | contribs) |
Bermudabeast (talk | contribs) |
||
Line 38: | Line 38: | ||
bUseGroupActivityWebhook=False | bUseGroupActivityWebhook=False | ||
− | bUseCombatActivityWebhook=False | + | bUseCombatActivityWebhook=False |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 45: | Line 45: | ||
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> | ||
In order to enable a webhook, you want to set the matching config setting to ''True'' according to the following example: <br> | In order to enable a webhook, you want to set the matching config setting to ''True'' according to the following example: <br> | ||
− | Note that we will be using the chat webhook as an example but the exact same logic applies to every other setting.<br> | + | Note that we will be using the chat webhook as an example but the exact same logic applies to every other GameReporter setting.<br> |
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]. 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> | 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]. 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> | ||
and set the matching setting to '''True''' as follows: <syntaxhighlight lang="ini">bUseChatWebhook=True</syntaxhighlight> | and set the matching setting to '''True''' as follows: <syntaxhighlight lang="ini">bUseChatWebhook=True</syntaxhighlight> | ||
+ | With that set up, you will have an active Chat webhook. | ||
+ | If you will, you can also have a custom "Profile Picture" URL for the webhook you have setup by using any URL to an image supported by Discord. You can do this by setting the Icon setting matching your webhook. For the chat example, this would do as follows: | ||
+ | <syntaxhighlight lang="ini">ChatReportIconURL="https://j.gifs.com/vQ8EzL.gif"</syntaxhighlight> |
Revision as of 17:39, 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.
In order to enable a webhook, you want to set the matching config setting to True according to the following example:
Note that we will be using the chat webhook as an example but the exact same logic applies to every other GameReporter setting.
Create the chat webhook on your discord server according to the discord documentation. 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"
and set the matching setting to True as follows:
bUseChatWebhook=True
With that set up, you will have an active Chat webhook. If you will, you can also have a custom "Profile Picture" URL for the webhook you have setup by using any URL to an image supported by Discord. You can do this by setting the Icon setting matching your webhook. For the chat example, this would do as follows:
ChatReportIconURL="https://j.gifs.com/vQ8EzL.gif"