botstruct

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 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

Jump to

Keyboard shortcuts

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