config

package
v0.0.0-...-0b8d19b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationCommands []*discordgo.ApplicationCommand
View Source
var Classes = store.Classes
View Source
var Color color = color{Default: 0xf62dcd, Error: 0xf32917, Blue: 0x17caf3}
View Source
var Commands = []*discordgo.ApplicationCommand{
	{
		Name:         "ping",
		Description:  "Ping Pong.",
		DMPermission: &dmPermission,
	},
	{
		Name:         "register",
		Description:  "Register into Kiko",
		DMPermission: &dmPermission,
	},
	{
		Name:         "profile",
		Description:  "View your profile on Kiko",
		DMPermission: &dmPermission,
	},
	{
		Name:         "explore",
		Description:  "Explore the floor you are on",
		DMPermission: &dmPermission,
	},
	{
		Name:         "inventory",
		Description:  "View the items you have",
		DMPermission: &dmPermission,
	},
	{
		Name:         "move",
		Description:  "Move to a different floor in the tower",
		DMPermission: &dmPermission,
		Options: []*discordgo.ApplicationCommandOption{
			{
				Name:        "floor",
				Type:        discordgo.ApplicationCommandOptionInteger,
				MinValue:    &towerMinFloor,
				Description: "The floor number",
				Required:    true,
			},
		},
	},
	{
		Name:         "battle",
		Description:  "Start a battle using a battle card",
		DMPermission: &dmPermission,
		Options: []*discordgo.ApplicationCommandOption{
			{
				Name:        "id",
				Type:        discordgo.ApplicationCommandOptionInteger,
				MinValue:    &towerMinFloor,
				Description: "The id of the battle card (You can find the id using the /inventory command)",
				Required:    true,
			},
		},
	},
}
View Source
var DevGuild = "983931249456455720"
View Source
var RegisterCommand string
View Source
var Weapons = store.Weapons

Functions

func GetEnemyEmbed

func GetEnemyEmbed(enemy *EnemyStruct) *discordgo.MessageEmbed

Types

type EnemyStruct

type EnemyStruct struct {
	Name     string
	Strength int
	Mana     int
	Health   int
	Defence  int
}

func GetRandomEnemy

func GetRandomEnemy() *EnemyStruct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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