torpedo_history_plugin

package module
v0.0.0-...-2927688 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendMsgReply

func AppendMsgReply(incoming []torpedo_registry.MessageHistoryItem) (reply string)

func HistoryProcessMessage

func HistoryProcessMessage(api *torpedo_registry.BotAPI, channel interface{}, incoming_message string)

func RunHistorySearch

func RunHistorySearch(channel, pattern string) (reply string)

Types

type ByTimestamp

func (ByTimestamp) Len

func (a ByTimestamp) Len() int

func (ByTimestamp) Less

func (a ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (a ByTimestamp) Swap(i, j int)

type SearchOption

type SearchOption struct {
	SearchOptions []string
	Limit         int
	Page          int
	Multi         int
	Before        int
	After         int
	Query         string
}

func (*SearchOption) Parse

func (so *SearchOption) Parse(str string) (err error)

Jump to

Keyboard shortcuts

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