quotedb

package
v3.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQuote

func AddQuote(db database.Connector, channel, quoteStr string) error

func DelQuote

func DelQuote(db database.Connector, channel string, quoteIdx int) error

func GetChannelQuotes

func GetChannelQuotes(db database.Connector, channel string) ([]string, error)

func GetMaxQuoteIdx

func GetMaxQuoteIdx(db database.Connector, channel string) (int, error)

func GetQuote

func GetQuote(db database.Connector, channel string, quote int) (int, string, error)

func GetQuoteRaw

func GetQuoteRaw(db database.Connector, channel string, quoteIdx int) (int, int64, string, error)

func Register

func Register(args plugins.RegistrationArguments) error

func SetQuotes

func SetQuotes(db database.Connector, channel string, quotes []string) error

func UpdateQuote

func UpdateQuote(db database.Connector, channel string, idx int, quoteStr string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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