manager

package
v0.0.0-...-d8cc314 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToBlackList

func AddToBlackList(ctx *ZeroBot.Ctx, t int64) error

func GroupSwitchControl

func GroupSwitchControl(ctx *ZeroBot.Ctx) bool

func Init

func Init(config Config)

func UserBlackListQuery

func UserBlackListQuery(ctx *ZeroBot.Ctx) bool

Types

type BlackList

type BlackList struct {
	ID      uint64
	Time    uint64
	Forever bool
}

type Config

type Config struct {
	Enable bool
}

type Group

type Group struct {
	ID     uint64 `json:"id" form:"id" gorm:"primary_key;"`
	Enable bool   `json:"enable" form:"enable"`
	Loader int64
}

Jump to

Keyboard shortcuts

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