tagmodule

package
v0.0.0-...-025a0c4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWhereClause

func BuildWhereClause(arg string) (string, []string)

BuildWhereClause returns a valid mySQL WHERE clause and argument list from a logical tag expression

func ShowAllTags

func ShowAllTags(message string, info *bot.GuildInfo) *discordgo.MessageEmbed

ShowAllTags builds an embed message containing all tags

func ValidateWhereClause

func ValidateWhereClause(arg string) bool

ValidateWhereClause ensures that all parentheses are properly closed in a given string

Types

type TagModule

type TagModule struct {
	Cache map[string]*sql.Stmt
}

TagModule contains commands for manipulating tags

func New

func New() *TagModule

New instance of TagModule

func (*TagModule) Commands

func (w *TagModule) Commands() []bot.Command

Commands in the module

func (*TagModule) Description

func (w *TagModule) Description(info *bot.GuildInfo) string

Description of the module

func (*TagModule) Name

func (w *TagModule) Name() string

Name of the module

Jump to

Keyboard shortcuts

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