admin

package
v0.0.0-...-6d0e092 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HelpCheck = "!check [@SomeUser]"
View Source
const HelpRegister = "!register [@SomeUser]"
View Source
const (
	HelpTake = "!take @SomeUser <some_amount>"
)

Variables

View Source
var ChatPox = Config{
	Admins: map[string]string{
		"384902507383619594": "Kevin",
		"303750733700923392": "Dylan",
	},
	Members: []string{
		"303750733700923392",
		"390693560141217814",
		"384902507383619594",
		"482844996349984769",
		"297889272793399296",
		"566875887119892510",
		"387121478740738050",
		"359963174373425152",
		"414202347137269773",
	},
}
View Source
var (
	ErrNotAdmin = errors.New("user not authorized to take that action")
)
View Source
var HelpGive = "!give @SomeUser <some_amount>"

Functions

func BulkRegister

func BulkRegister(params []commands.Parameter, s *discordgo.Session, m *discordgo.MessageCreate)

func Check

func Give

func RegisterUser

func RegisterUser(params []commands.Parameter, s *discordgo.Session, m *discordgo.MessageCreate)

func Take

Types

type Config

type Config struct {
	Admins  map[string]string
	Members []string
}

func (*Config) IsAdmin

func (cfg *Config) IsAdmin(id string) bool

Jump to

Keyboard shortcuts

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