Documentation ¶
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 account.
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 ¶
Click to show internal directories.
Click to hide internal directories.