public

package
v0.0.0-...-0dd6052 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 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 ConvertGradeToInt

func ConvertGradeToInt(s string) (grade []int)

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, admins []string) bool

func IsCompAdmin

func IsCompAdmin(roles []string) bool

func IsConnErr

func IsConnErr(err error) bool

func Prefix

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

func RandomString

func RandomString(n int) string

func StartsWith

func StartsWith(s, prefix string) bool

Types

type BotLogin

type BotLogin struct {
	AppId       uint64
	AccessToken string
}

type GetAppAccessToken

type GetAppAccessToken struct {
	AppId        string `json:"appId"`
	ClientSecret string `json:"clientSecret"`
}

type MessageType

type MessageType int
const (
	GuildMessage MessageType = iota
	GroupMessage
	PrivateMessage
	DirectMessage
	Undefined
)

type Node

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

type PluginConfig

type PluginConfig struct {
	Conf []string
}

type QQGetAppAccessTokenResp

type QQGetAppAccessTokenResp struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   string `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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