botsdef

package
v0.0.0-...-cdbca9a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modules = []string{"about", "dicer"}

Functions

This section is empty.

Types

type Discord

type Discord interface {
	Start(guildID string)
	Stop()
}

func CreateBotInstance

func CreateBotInstance(session *discordgo.Session, module string) Discord

CreateBotInstance creates a new bot instance based on the module name.

Parameters: - session: a Discord session - module: the name of the module ("hi" or "hello") Returns a Discord instance.

Jump to

Keyboard shortcuts

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