skirbot

package module
v0.0.0-...-83b6a78 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "!"

Prefix is the regexp to match whether to respond to a message or not.

Variables

This section is empty.

Functions

func MessageCreate

func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

MessageCreate is called every time a new message is created on any channel that the bot has access to.

Types

type Card

type Card struct {
	Name string

	Continuous bool
	Deck       *Deck
	Hero       *Hero
	Character  *Character
	Halo       *Halo

	Action bool
	Short  string
	Long   string
	Flavor string
}

func GetCardByName

func GetCardByName(name string) (card *Card, err error)

func (Card) String

func (c Card) String() string

func (Card) Type

func (c Card) Type() string

type Character

type Character struct {
	Damage int
	Life   interface{} // Can be number or X
	Speed  int
}

func (Character) String

func (c Character) String() string

type Deck

type Deck struct {
	Leader    string
	Rarity    int
	Cost      interface{} // Cost can be number or X
	Channeled bool
}

func (Deck) String

func (c Deck) String() string

type Halo

type Halo struct {
	Hero Hero
	Character
	Short string
}

func (Halo) String

func (c Halo) String() string

type Hero

type Hero struct {
	// Character
	Resolve int
}

func (Hero) String

func (c Hero) String() string

Directories

Path Synopsis
Command skirbot is a Discord bot that queries information about cards and rules in the Dreamkeepers: Skirmish card game.
Command skirbot is a Discord bot that queries information about cards and rules in the Dreamkeepers: Skirmish card game.

Jump to

Keyboard shortcuts

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