app

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build string
View Source
var Version string

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot() *Bot

func (*Bot) Initialize

func (app *Bot) Initialize(config_path string) error

Initalize creates the discord session and registers handlers

func (*Bot) Notify

func (app *Bot) Notify(message string)

Notify sends a message to the notification channe;

func (*Bot) Run

func (app *Bot) Run() error

Run opens the session with Discord until exit

func (*Bot) Stop

func (app *Bot) Stop()

Stop triggers a graceful shutdown of the app

Jump to

Keyboard shortcuts

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