botstruct

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auinfo

type Auinfo struct {
	AuNumber   string
	AuStatus   bool
	AuMsg      string
	AuJumpURL  string
	AuCoverURL string
	AuURL      string
	AuTitle    string
	AuDesp     string
}

Auinfo includes some basic info of a Au number.

type BotConfig

type BotConfig struct {
	MasterID          []gjson.Result
	HTTPAPIAddr       string
	HTTPAPIToken      string
	HTTPAPIPostSecret string
}

BotConfig includes CQHTTPAPI config.

type MsgInfo

type MsgInfo struct {
	TimeStamp int64
	SenderID  string
	Role      string
	GroupID   string
	Message   string
	MsgType   string
	RobotID   string
	MD5       [16]byte
}

MsgInfo includes some basic info about a message.

type Role added in v1.8.0

type Role struct {
	RoleName  string
	RoleLevel int
}

Role is the role of message sender.

RoleLevel => RoleName
	0 => member
	1 => admin
	2 => owner
	3 => master

type VTBMusicInfo

type VTBMusicInfo struct {
	MusicName  string
	MusicID    string
	MusicVocal string
	Cover      string
	MusicURL   string
	MusicCDN   string
}

VTBMusicInfo includes the info of a music.

type VTBMusicList

type VTBMusicList struct {
	Total int64
	Data  []gjson.Result
}

VTBMusicList includes the search result.

Jump to

Keyboard shortcuts

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