Documentation ¶
Overview ¶
Package bot implements the main DILF Discord client.
Index ¶
- type Bot
- type Option
- func WithAdmins(admins ...discord.UserID) Option
- func WithDB(db *sql.DB) Option
- func WithDebug(debug bool) Option
- func WithFeedbackWebhook(hook *webhook.Client) Option
- func WithLogger(l *zap.Logger) Option
- func WithLoggingWebhook(hook *webhook.Client) Option
- func WithSiteAddr(site string) Option
- func WithSteamAPIKey(key string) Option
- func WithTopsterAddr(t string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is a Discord bot client.
type Option ¶
type Option func(*Bot)
Option configures a Bot.
func WithAdmins ¶
WithAdmins adds one or more admins to the Bot.
func WithFeedbackWebhook ¶
WithFeedbackWebhook sets the Bot's feedback webhook.
func WithLoggingWebhook ¶
WithLoggingWebhook sets the Bot's error log webhook.
func WithSteamAPIKey ¶
WithSteamAPIKey sets a Bot's Steam API key.
func WithTopsterAddr ¶
WithTopsterAddr sets the Bot's address for a Topster microservice.
Source Files ¶
- bot.go
- cmd_jenna.go
- cmd_jerkcity.go
- cmd_meta.go
- cmd_pings.go
- cmd_profile.go
- cmd_quote.go
- cmd_roles.go
- cmd_scrote.go
- cmd_settings.go
- cmd_tags.go
- cmd_time.go
- cmd_topster.go
- cmd_utils.go
- commands.go
- const.go
- handler_hole.go
- handler_protocol.go
- handler_scrote.go
- handlers.go
- helpers.go
- message_helpers.go
- option.go
- pings.go
- protocols.go
- role_updater.go
- router.go
Click to show internal directories.
Click to hide internal directories.