fun

package
v0.0.0-...-cefa0b8 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = twitch.NewAnonymousClient()
View Source
var Fun = FunData{
	Cmds:           []Cmd{},
	BlockedUserIDs: map[string]struct{}{},
}
View Source
var InitTime = time.Now()

Functions

func IsBlocked

func IsBlocked(userID string) bool

func LoadBlocklist

func LoadBlocklist()

Types

type Cmd

type Cmd struct {
	Name    string
	Handler func(m twitch.PrivateMessage) error
}

type FunData

type FunData struct {
	Cmds           []Cmd
	BlockedUserIDs map[string]struct{}
}

func (*FunData) Register

func (f *FunData) Register(c *Cmd)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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