plugins

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeywordReplacer

type KeywordReplacer struct {
	// contains filtered or unexported fields
}

KeywordReplacer replaces keywords in messages

func NewKeywordReplacer

func NewKeywordReplacer(replacements map[string]string) *KeywordReplacer

NewKeywordReplacer creates a new keyword replacer middleware

func (*KeywordReplacer) ProcessIncoming

func (k *KeywordReplacer) ProcessIncoming(sender, content string) (string, bool)

ProcessIncoming replaces keywords in incoming messages

func (*KeywordReplacer) ProcessOutgoing

func (k *KeywordReplacer) ProcessOutgoing(content string) (string, bool)

ProcessOutgoing replaces keywords in outgoing messages

Jump to

Keyboard shortcuts

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