bot

package
v0.0.0-...-06eb8ec Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFindHandler

func NewFindHandler(cardsDir string, cache *PicCache) tgbotbase.IncomingMessageHandler

Types

type Card

type Card struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	LocalName   string `json:"printed_name"`
	Lang        string `json:"lang"`
	ImageURIs   Images `json:"image_uris"`
	URI         string `json:"uri"`
	RulingsURI  string `json:"rulings_uri"`
	ScryfallURI string `json:"scryfall_uri"`
}

type Images

type Images struct {
	Normal string `json:"normal"`
}

type PicCache

type PicCache struct {
	// contains filtered or unexported fields
}

func NewPicCache

func NewPicCache(baseDir string) *PicCache

func (*PicCache) Get

func (c *PicCache) Get(id, url string) (string, error)

Jump to

Keyboard shortcuts

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