public

package
v0.0.0-...-400fdf6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayStringToArrayInt64

func ArrayStringToArrayInt64(s []string) (g []int64)

func Contains

func Contains(s, substr string) bool

func ConvertJinTime

func ConvertJinTime(i int) string

func ConvertTime

func ConvertTime(str string) int32

func EndsWith

func EndsWith(s, suffix string) bool

func GuildAtConvert

func GuildAtConvert(str string) (string, []string)

func IsAdmin

func IsAdmin(roles []string) bool

func IsBotAdmin

func IsBotAdmin(userId string) bool

func IsConnErr

func IsConnErr(err error) bool

func Prefix

func Prefix(s string, p string) (r string, b bool)

func StartsWith

func StartsWith(s, prefix string) bool

Types

type BotLogin

type BotLogin struct {
	AppId       uint64
	AccessToken string
}

func BotLoginInfo

func BotLoginInfo() (c BotLogin, err error)

type DataBase

type DataBase struct {
	User     string
	Password string
	Url      string
	Port     int
}

func DataBaseSet

func DataBaseSet() (dbset DataBase, err error)

type Node

type Node struct {
	XMLName xml.Name
	Attr    []xml.Attr `xml:",any,attr"`
}

type PluginConfig

type PluginConfig struct {
	Conf []string
}

func TbotConf

func TbotConf() (c PluginConfig, err error)

type Redis

type Redis struct {
	Url      string
	Port     int
	Password string
	Table    int
	PoolSize int
}

func RedisSet

func RedisSet() (dbset Redis, err error)

Jump to

Keyboard shortcuts

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