bot

package
v0.0.0-...-3b681d9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Config   Config
	Logger   *zap.SugaredLogger
	Handlers *handlers.Loader
	// contains filtered or unexported fields
}

Bot implements the discord bot

func (*Bot) Run

func (bt *Bot) Run() error

Run starts up the bot

func (*Bot) Stop

func (bt *Bot) Stop() error

Stop closes the connection and resets the discord session

type Config

type Config struct {
	DiscordBotToken string `required:"true"`
}

Config holds configuration options for botboi

Jump to

Keyboard shortcuts

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