Documentation
¶
Index ¶
- func AddToConnectedPlayers(username, steamID string, connectionTime time.Time, players map[string]string)
- func InitializeDiscordBot()
- func PassLogStreamToDiscordLogBuffer(logMessage string)
- func RemoveFromConnectedPlayers(steamID string, players map[string]string)
- func SendMessageToControlChannel(message string)
- func SendMessageToSavesChannel(message string)
- func SendMessageToStatusChannel(message string)
- func SendUntrackedMessageToErrorChannel(message string)
- func UpdateBotStatusWithMessage(message string)
- type EmbedData
- type EmbedField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToConnectedPlayers ¶
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 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 ¶
EmbedField represents a single field in the embed
Click to show internal directories.
Click to hide internal directories.