bot

package
v0.0.0-...-1ff17e5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCreatingSession indicates that something went wrong while creating a bot session
	ErrCreatingSession = errors.New("error while creating the discord session")
	// ErrOpeningSocket indicates that something went wrong while opening a bot session
	ErrOpeningSocket = errors.New("error opening socket")
)

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

Bot contains all the information the discord bot needs

func New

func New(in chan appie.Product, mon *monitor.Monitor, token string) (*Bot, error)

New creates a new bot instance

func (*Bot) Run

func (b *Bot) Run() error

Run starts the discord bot

func (*Bot) Stop

func (b *Bot) Stop() error

Stop stops the bot instance

Jump to

Keyboard shortcuts

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