trigger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const WORD = `(?i)\b{WORD}\b`

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	All() ([]Trigger, error)
	Add(*Trigger) error
	Remove(id uint64)
}

type Trigger

type Trigger struct {
	Id    uint64
	Word  string
	Reply string
	Regex string
}

func (*Trigger) Check

func (t *Trigger) Check(str string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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