vars

package
v0.0.0-...-2cb72f2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Parser *flags.Parser
)

Functions

This section is empty.

Types

type Starbot

type Starbot struct {
	Config      *cfg.Config
	Database    *db.Database
	Commander   *discord.CommandManager
	BotSession  *discordgo.Session
	UserSession *discordgo.Session
	Emailer     *utils.Emailer
	// contains filtered or unexported fields
}

func InitialiseStarbot

func InitialiseStarbot(opts ...StarbotOption) (*Starbot, error)

Creates a new instance of the Starbot.

type StarbotOption

type StarbotOption func(*Starbot)

func AwaitUserExit

func AwaitUserExit() StarbotOption

func WithBotSession

func WithBotSession(args ...interface{}) StarbotOption

func WithCommander

func WithCommander() StarbotOption

func WithConfig

func WithConfig(path string) StarbotOption

func WithDatabase

func WithDatabase(path string) StarbotOption

func WithEmailer

func WithEmailer() StarbotOption

func WithSeededRandom

func WithSeededRandom() StarbotOption

func WithTriggers

func WithTriggers() StarbotOption

func WithUserSession

func WithUserSession(args ...interface{}) StarbotOption

Jump to

Keyboard shortcuts

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