admin

package
v0.0.0-...-b615ece Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

P references the var Pipe in main

View Source
var R *bool

R is a reference to the running boolean in main.

View Source
var Stopped bool

Functions

func BanPlayer

func BanPlayer(s *discordgo.Session, m *discordgo.MessageCreate, arg1 string, arg2 string)

BanPlayer executes the ban command on the server.

func KickPlayer

func KickPlayer(s *discordgo.Session, m *discordgo.MessageCreate, arg1 string, arg2 string)

KickPlayer executes the kick command on the server.

func Restart

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

Restart saves and restarts the server

func SaveServer

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

SaveServer executes the save command on the server.

func StartServer

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

StartServer sets Stopped variable to false so auto-restart function will start server again.

func StopServer

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

StopServer saves and stops the server.

func UnbanPlayer

func UnbanPlayer(s *discordgo.Session, m *discordgo.MessageCreate, arg1 string)

UnbanPlayer executes the unban command on the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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