discordbot

package
v5.3.1-beta Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToConnectedPlayers

func AddToConnectedPlayers(username, steamID string, connectionTime time.Time, players map[string]string)

func InitializeDiscordBot

func InitializeDiscordBot()

InitializeDiscordBot starts or restarts the Discord bot and connects it to the Discord API.

func PassLogStreamToDiscordLogBuffer

func PassLogStreamToDiscordLogBuffer(logMessage string)

PassLogMessageToDiscordLogBuffer is called from the detection module to add a log message to the buffer.

func RemoveFromConnectedPlayers

func RemoveFromConnectedPlayers(steamID string, players map[string]string)

func SendMessageToControlChannel

func SendMessageToControlChannel(message string)

func SendMessageToSavesChannel

func SendMessageToSavesChannel(message string)

func SendMessageToStatusChannel

func SendMessageToStatusChannel(message string)

func SendUntrackedMessageToErrorChannel

func SendUntrackedMessageToErrorChannel(message string)

func UpdateBotStatusWithMessage

func UpdateBotStatusWithMessage(message string)

Updates the bot status with a string message (unused in 4.3)

Types

type EmbedData

type EmbedData struct {
	Title       string
	Description string
	Color       int
	Fields      []EmbedField
}

EmbedData represents the structure for creating embeds

type EmbedField

type EmbedField struct {
	Name   string
	Value  string
	Inline bool
}

EmbedField represents a single field in the embed

Jump to

Keyboard shortcuts

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