Documentation ¶
Index ¶
- Variables
- type Starbot
- type StarbotOption
- func AwaitUserExit() StarbotOption
- func WithBotSession(args ...interface{}) StarbotOption
- func WithCommander() StarbotOption
- func WithConfig(path string) StarbotOption
- func WithDatabase(path string) StarbotOption
- func WithEmailer() StarbotOption
- func WithSeededRandom() StarbotOption
- func WithTriggers() StarbotOption
- func WithUserSession(args ...interface{}) StarbotOption
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
Click to show internal directories.
Click to hide internal directories.