Webhook Discord

Tutorial to help set up the discord webhook.

It has notification functions to start, save, shut down, and raids.

Credits:

wizardlink (Discord Webhook)

Majesty (Tutorial)

1 - Configuration - Discord:

  • Create a server in Discord for your project/community.

  • Access the server configuration:

  • Access Integrations, Webhooks and click the Create webhook button:

  • Set up a name for the webhook and channel for notifications:

  • Copy the webhook URL.

2 - Configuration - Server:

  • Open the file config.lua / config.lua.dist server OTServBR-Global.

  • Look for:

  • Add the URL of your webhook, example:

3 - Result:

4 - Additional Information:

  • The webhook system comes pre-installed in OTServBR-Global for various functions such as save, close, intrusions, etc., but is fully flexible to use in any type of notification that you would like your users to receive on your discord server. It runs with the function:

The color can also be changed, the ones available in OTServBR-Global are as follows (with possibility of expansion):

5 - Special Webhooks:

  • With this you configure channels webhooks in discord and paste the discord api url in this file:

Examples:

Broadcast:

OpenServer:

Ban:

Player Record:

Update Player on Advanced Level:

Last updated