games

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommands

func GetCommands(base bot.BaseCommand, cfg *config.Config) bot.Commands

GetCommands will return a list of available games commands

func NewNumberGuesserCommand

func NewNumberGuesserCommand(base bot.BaseCommand) bot.Command

NewNumberGuesserCommand is a very small game to guess a random number

func NewQuizCommand

func NewQuizCommand(base bot.BaseCommand) bot.Command

NewQuizCommand returns a new quizCommand which is a small quiz game

Types

type Config added in v2.3.1

type Config struct {
	Enabled bool `mapstructure:"enabled"`
}

Config to enable/disable games

Jump to

Keyboard shortcuts

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