vhdfunc

package
v0.0.0-...-5c1cd99 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JFile       string
	BotToken    string
	CmdChar     string
	AdminMsg    string
	AdminChn    string
	GameScript  string
	GameChannel string
	BotChans    bool
)

Functions

func CtrlGame

func CtrlGame(f string, s *discordgo.Session, m *discordgo.MessageCreate)

function to control the game on linux systems bot has to run on the same server as where the game is and have permissions to execute the start/stop script

func ListenAndReply

func ListenAndReply(s *discordgo.Session, m *discordgo.MessageCreate)

This function is called every time a new message is created on any channel that the authenticated bot has access to.

func PrintHelp

func PrintHelp() string

Self-explanatory, print help if user asks bot for command list

func VhdInit

func VhdInit()

Types

This section is empty.

Jump to

Keyboard shortcuts

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