rules

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDetailType

func CheckDetailType(tp string) zero.Rule

CheckDetailType Rule:检查事件DetailType(MessageType/NoticeType/RequestType)

func ReplyAndCommands added in v0.1.3

func ReplyAndCommands(commands ...string) func(ctx *zero.Ctx) bool

ReplyAndCommands Rule生成器: 含回复且文本中包含指定命令

func SkipGroupAnonymous

func SkipGroupAnonymous(ctx *zero.Ctx) bool

SkipGroupAnonymous Rule:不处理群匿名消息

func SkipGuildMessage

func SkipGuildMessage(ctx *zero.Ctx) bool

SkipGuildMessage Rule:不处理频道消息事件

Types

This section is empty.

Jump to

Keyboard shortcuts

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