inatlookup

package
v0.0.0-...-4e30d13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigCommandOptions

func ConfigCommandOptions() mod.ConfigCommandOptions

func Provider

func Provider(logger *slog.Logger) (mod.ModuleProviderResult, error)

Types

type GuildConfig

type GuildConfig struct {
	CommandPrefixRegex *regexp.Regexp `json:"-"`
	Name               string         `json:"name"`
	ID                 string         `json:"id"`
	CommandPrefix      string         `json:"command_prefix"`
	Channels           []string       `json:"channels"`
}

type Module

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

func New

func New(logger *slog.Logger) (*Module, error)

func (*Module) Config

func (m *Module) Config() []GuildConfig

func (*Module) Name

func (m *Module) Name() string

func (*Module) ReloadConfig

func (m *Module) ReloadConfig(
	ctx context.Context,
	discord *discordgo.Session,
	db *store.Queries,
) error

func (*Module) SetConfig

func (m *Module) SetConfig(config []GuildConfig)

func (*Module) Start

func (m *Module) Start(ctx context.Context, discord *discordgo.Session, db *store.Queries) error

Jump to

Keyboard shortcuts

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