metacmd

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitTime time.Time

InitTime contains the exact time the bot was completely restarted

View Source
var Module = &module.Module{
	Name: "metacmd",
	Commands: []*drc.Command{
		hello,
		invite,
		cList,
		ping,
		uptime,
	},
	DgoHandlers: []interface{}{
		onReady,
	},
	OpenFunc: func(m *module.Module) error {
		InitTime = time.Now().UTC()

		if !m.ConfigFound {
			config.Invite = "No invite set"
		}
		return nil
	},
	Config: &config,
}

Module contains stuff (bug me to fix comments later)

View Source
var ReadyTime time.Time

ReadyTime contains the time of the last onready event

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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