bot

package
v0.0.0-...-326f088 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Session *discordgo.Session
	Prefix  string

	Exit chan error
}

Bot is a wrapper for a discordgo session

func NewBot

func NewBot(confloc string) (*Bot, error)

NewBot creates a new bot based on the settings in the configuration file

func (*Bot) Run

func (b *Bot) Run() error

Run runs the bot and exits if CTRL-C is pressed or if there is a fatal error

Jump to

Keyboard shortcuts

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