Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { }
func (*Admin) Do ¶
func (admin *Admin) Do(ctx *context.Context, botId, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) RetStuct
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type CBotSwitch ¶
type CBotSwitch struct { }
type CLearnPlugin ¶
type CLearnPlugin struct { }
type CPricePlugin ¶
type CPricePlugin struct { }
type CRepeat ¶
type CRepeat struct { }
func (*CRepeat) ChannelDo ¶
func (rep *CRepeat) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)
* botId 机器人Id * channelId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type CScramblePlugin ¶
type CScramblePlugin struct { }
type ChannelBlock ¶
type ChannelBlock struct{}
type ChannelGuard ¶
type ChannelGuard struct { }
type Guard ¶
type Guard struct { }
func (*Guard) Do ¶
func (guard *Guard) Do(ctx *context.Context, botId, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) RetStuct
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type LearnPlugin ¶
type LearnPlugin struct { }
func (*LearnPlugin) Do ¶
func (learnPlugin *LearnPlugin) Do(ctx *context.Context, botId, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) RetStuct
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
type Repeat ¶
type Repeat struct { }
func (*Repeat) Do ¶
func (rep *Repeat) Do(ctx *context.Context, botId, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) 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, groupId, userId int64, messageId *onebot.MessageReceipt, rawMsg, card string, botRole, userRole, super bool, rs, rd, rf int) RetStuct
* botId 机器人Id * groupId 群Id * userId 用户Id * messageId 消息Id * rawMsg 群消息 * card At展示 * userRole 用户角色,是否是管理员 * botRole 机器人角色, 是否是管理员 * retval 返回值,用于判断是否处理下一个插件 * replyMsg 待发送消息 * rs 成功防屏蔽码 * rd 删除防屏蔽码 * rf 失败防屏蔽码
Source Files ¶
- plugin_admin.go
- plugin_block.go
- plugin_channel_block.go
- plugin_channel_guard.go
- plugin_channel_learn.go
- plugin_channel_price.go
- plugin_channel_repeat.go
- plugin_channel_reply.go
- plugin_channel_scramble.go
- plugin_channel_subscribe.go
- plugin_channel_switch.go
- plugin_guard.go
- plugin_learn.go
- plugin_price.go
- plugin_repeat.go
- plugin_reply.go
- plugin_scramble.go
- plugin_subscribe.go
- plugin_switch.go