webhook

package
v0.0.0-...-979f385 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 9 Imported by: 0

README

Discord Webhook Example

To get your Discord Webhook ID and token, see:https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
Once you get the webhook URL, you can get ID and token in following format:
https://discord.com/api/webhooks/THIS_IS_YOUR_WEBHOOK_ID/THIS_IS_YOUR_WEBHOOK_TOKEN

then run Program

go run ./examples/discord_webhook/cmd/main.go -id THIS_IS_YOUR_WEBHOOK_ID -token THIS_IS_YOUR_WEBHOOK_TOKEN -host localhost -port 8080

On Your Game Server

There is no authentication.
You need to configure event logger on get5: get5_remote_log_url "http://localhost:8080/get5/event".

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(password string) got5.Auth

NewAuth Get new auth pointer

func NewEventHandler

func NewEventHandler(webhookID uint64, webhookToken string, url string, auth string) got5.EventHandler

NewEventHandler Get Logger pointer

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL