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 )
View Source
var Conf config.Config
Conf is the config
View Source
var Dg *discordgo.Session
Dg is the main discord session
View Source
var Hn *drc.Handler
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 ¶
Setup this is crappy, i'll rewrite this to be prettier eventually ~~or never apparently~~
func StartUntilStop ¶
StartUntilStop starts the bot and runs it until something requests it to close
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.