plugins

package
v0.0.0-...-f191df0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 14 Imported by: 0

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 {
}

func (*CBotSwitch) ChannelDo

func (botSwitch *CBotSwitch) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type CLearnPlugin

type CLearnPlugin struct {
}

func (*CLearnPlugin) ChannelDo

func (learnPlugin *CLearnPlugin) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type CPricePlugin

type CPricePlugin struct {
}

func (*CPricePlugin) ChannelDo

func (price *CPricePlugin) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

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 CReply

type CReply struct {
}

func (*CReply) ChannelDo

func (rep *CReply) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type CScramblePlugin

type CScramblePlugin struct {
}

func (*CScramblePlugin) ChannelDo

func (scramble *CScramblePlugin) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type CSub

type CSub struct {
}

func (*CSub) ChannelDo

func (sub *CSub) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type ChannelBlock

type ChannelBlock struct{}

func (*ChannelBlock) ChannelDo

func (block *ChannelBlock) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

type ChannelGuard

type ChannelGuard struct {
}

func (*ChannelGuard) ChannelDo

func (guard *ChannelGuard) ChannelDo(ctx *context.Context, botId, botChannelId int64, guildId, channelId, userId uint64, rawMsg, card string, super, userRole bool, rs, rd, rf int) (retStuct RetChannelStuct)

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 失败防屏蔽码

Jump to

Keyboard shortcuts

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