plugins

package
v0.0.0-...-e09407b Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 Bind

type Bind struct {
}

func (*Bind) Do

func (rep *Bind) 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)

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

func (*Competition) Do

func (rep *Competition) 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)

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 ItmeAndBestAndAverage struct {
	Item            string
	Best            int
	BestUserName    string
	Average         int
	AverageUserName string
}

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 Log

type Log struct {
}

func (*Log) Do

func (l *Log) 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)

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

func (*RankPlugin) Do

func (rp *RankPlugin) 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)

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

type WCA

type WCA struct {
}

func (*WCA) Do

func (wca *WCA) 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)

Jump to

Keyboard shortcuts

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