tree

package
v0.0.0-...-2935971 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BotVersion  = "0.1.12.0-whyDoIHaveThisIliterallyNeverUpdateIt-Edition" // fun fact, this has been 0.1.12 since January 2021
	BotSoftware = "openSpaghettishia"
)
View Source
var (
	ConfigDir string
	DataDir   string
)

Conf is the config

Dg is the main discord session

Hn is the global handler

Functions

func InitHandleFlags

func InitHandleFlags()

InitHandleFlags is the same as Initialise but it loads its options from flags

func Initialise

func Initialise(datadir, configdir string)

Initialise loads the config data from the config file and sets the current directory to datadir for loading and saving data

func Setup

func Setup(modules []*module.Module)

Setup this is crappy, i'll rewrite this to be prettier eventually ~~or never apparently~~

func StartUntilStop

func StartUntilStop(modules []*module.Module)

StartUntilStop starts the bot and runs it until something requests it to close

Types

This section is empty.

Jump to

Keyboard shortcuts

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