filter

package
v1.2.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package filter implements an event filter for go-cqhttp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(file string)

Add adds a filter to the list of filters

Types

type Filter

type Filter interface {
	Eval(payload gjson.Result) bool
}

Filter 定义了一个消息上报过滤接口

func Find

func Find(file string) Filter

Find returns the filter for the given file

func Generate

func Generate(opName string, argument gjson.Result) Filter

Generate 根据给定操作符名opName及操作符参数argument创建一个过滤器实例

Jump to

Keyboard shortcuts

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