bot

package
v0.0.0-...-8bb0e6c Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 10 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 {
	Logger     *logger.Logger
	Mux        *mux.Mux
	Session    *discordgo.Session
	WeeklyInfo *tasks.WeeklyInfo
	Database   string
}

Bot represents everything that has to do with the bot. Has different modules, the session, and soon the DB

func New

func New() *Bot

New creates a new bot instance and session and does some config stuff

func (*Bot) AwaitTermination

func (b *Bot) AwaitTermination()

AwaitTermination awaits termination and then closes the bot and session cleanly.

func (*Bot) Start

func (b *Bot) Start()

Start will open the connection to discord and check for any errors and such :)

Jump to

Keyboard shortcuts

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