botargs

package
v0.0.0-...-7cb85a9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Bot{}

Default contains default env arguments.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	cli.Common
	Admins             []string `env:"BOT2_BOT_ADMINS"`
	Token              string   `env:"BOT2_BOT_TOKEN"`
	LoggingWebhookURL  string   `env:"BOT2_BOT_LOGGING_WEBHOOK_URL"`
	FeedbackWebhookURL string   `env:"BOT2_BOT_FEEDBACK_WEBHOOK_URL"`
	TopsterAddr        string   `env:"BOT2_BOT_TOPSTER_ADDR"`
	SiteAddr           string   `env:"BOT2_BOT_SITE_ADDR"`
	SteamAPIKey        string   `env:"BOT2_BOT_STEAM_API_KEY"`
}

Bot contains bot-specified args.

func (*Bot) New

func (b *Bot) New(ctx context.Context, db *sql.DB) *bot.Bot

New creates a new bot from the given args.

Jump to

Keyboard shortcuts

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