Documentation ¶
Index ¶
Constants ¶
View Source
const ( MESSAGE_BLOCK uint = 0 MESSAGE_IGNORE uint = 1 )
Variables ¶
View Source
var ChannelPluginSet map[string]ChannelPlugin
View Source
var PluginSet map[string]Plugin
Functions ¶
func ChannelRegister ¶
func ChannelRegister(k string, v ChannelPlugin)
Types ¶
type ChannelPlugin ¶
type InputStruct ¶
type InputStruct struct { BotId int64 GroupId int64 UserId int64 RawMsg string UserRole bool BotRole bool SuperRole bool RS int RD int RF int }
* userId 用户Id * groupId 群Id * rawMsg 群消息 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type RetChannelStuct ¶
type RetChannelStuct struct { RetVal uint ReplyMsg *ChannelMsg ReqType ReqType MessageId uint64 }
Click to show internal directories.
Click to hide internal directories.