Documentation ¶
Index ¶
- func LoadConfig() (*discfg.Config, error)
- func LoadListener(cfg discfg.ServerConfig) net.Listener
- func LoadTexitClient(address string, key string) texit.Invoker
- func LoadTracker(cfg *discfg.TrackerConfig) (pending_execution.Tracker, error)
- type AutoCompleteFunc
- type Bot
- func (b *Bot) AutoCompletePreflight(logLevel zerolog.Level, comFunc AutoCompleteFunc) func(itx tempest.CommandInteraction) []tempest.Choice
- func (b *Bot) CommandPreflight(comFunc CommandFunc) func(itx *tempest.CommandInteraction)
- func (b *Bot) Handler() *handler.Handler
- func (b *Bot) HttpHandler() http.Handler
- func (b *Bot) Init() error
- func (b *Bot) LogLevel() zerolog.Level
- func (b *Bot) Serve(ctx context.Context, lis net.Listener) error
- func (b *Bot) Tempest() *tempest.Client
- type BotOption
- type CommandFunc
- type Sec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶ added in v0.0.10
func LoadListener ¶ added in v0.0.9
func LoadListener(cfg discfg.ServerConfig) net.Listener
func LoadTexitClient ¶ added in v0.0.9
func LoadTracker ¶ added in v0.0.10
func LoadTracker(cfg *discfg.TrackerConfig) (pending_execution.Tracker, error)
Types ¶
type AutoCompleteFunc ¶
type AutoCompleteFunc func(*comctx.CommandContext) []tempest.Choice
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) AutoCompletePreflight ¶
func (b *Bot) AutoCompletePreflight(logLevel zerolog.Level, comFunc AutoCompleteFunc) func(itx tempest.CommandInteraction) []tempest.Choice
func (*Bot) CommandPreflight ¶
func (b *Bot) CommandPreflight(comFunc CommandFunc) func(itx *tempest.CommandInteraction)
func (*Bot) HttpHandler ¶ added in v0.0.6
type BotOption ¶
type BotOption func(*Bot)
func WithAuthorizedUsers ¶
func WithGuilds ¶
func WithLogLevel ¶
type CommandFunc ¶
type CommandFunc func(*comctx.CommandContext)
Click to show internal directories.
Click to hide internal directories.