Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PluginMap = map[string]utils.Plugin{ "群管": &Admin{}, "Bind": &Bind{}, "屏蔽": &Block{}, "赛季": &Competition{}, "守卫": &Guard{}, "查价": &PricePlugin{}, "学习": &LearnPlugin{}, "Log": &Log{}, "Rank": &RankPlugin{}, "复读": &Repeat{}, "回复": &Reply{}, "打乱": &ScramblePlugin{}, "订阅": &Sub{}, "开关": &BotSwitch{}, "WCA": &WCA{}, }
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { }
func (*Admin) Do ¶
func (admin *Admin) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type Block ¶
type Block struct{}
func (*Block) Do ¶
func (block *Block) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type BotSwitch ¶
type BotSwitch struct { }
func (*BotSwitch) Do ¶
func (botSwitch *BotSwitch) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type Competition ¶
type Competition struct { }
type Guard ¶
type Guard struct { }
func (*Guard) Do ¶
func (guard *Guard) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type ItmeAndBestAndAverage ¶
type LearnPlugin ¶
type LearnPlugin struct { }
func (*LearnPlugin) Do ¶
func (learnPlugin *LearnPlugin) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type PricePlugin ¶
type PricePlugin struct { }
func (*PricePlugin) Do ¶
func (price *PricePlugin) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type RankPlugin ¶
type RankPlugin struct{}
type Repeat ¶
type Repeat struct { }
func (*Repeat) Do ¶
func (rep *Repeat) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type Reply ¶
type Reply struct { }
func (*Reply) Do ¶
func (rep *Reply) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type ScramblePlugin ¶
type ScramblePlugin struct { }
func (*ScramblePlugin) Do ¶
func (scramble *ScramblePlugin) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type Sub ¶
type Sub struct { }
func (*Sub) Do ¶
func (sub *Sub) Do(ctx *context.Context, botId *utils.BotIdType, groupId *utils.GroupIdType, userId *utils.UserIdType, groupName string, messageId *utils.MsgIdType, rawMsg, card string, botRole, userRole, super bool) (retStuct utils.RetStuct)
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码