commands

package
v0.0.0-...-c43537a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(from, to string, amount float64) (float64, error)

func GetUrbanDictionaryDefinition

func GetUrbanDictionaryDefinition(term string) (def *ud.Result, err error)

func GetWotdJapanese

func GetWotdJapanese() (string, error)

Types

type Datum

type Datum struct {
	Slug     string     `json:"slug"`
	IsCommon bool       `json:"is_common"`
	Tags     []string   `json:"tags"`
	Japanese []Japanese `json:"japanese"`
	Senses   []Sense    `json:"senses"`
}

type DotaMMR

type DotaMMR struct {
	TrackedUntil        interface{} `json:"tracked_until"`
	LeaderboardRank     interface{} `json:"leaderboard_rank"`
	Profile             Profile     `json:"profile"`
	MmrEstimate         MmrEstimate `json:"mmr_estimate"`
	SoloCompetitiveRank int64       `json:"solo_competitive_rank"`
	CompetitiveRank     interface{} `json:"competitive_rank"`
	RankTier            interface{} `json:"rank_tier"`
}

func GetDotaMMR

func GetDotaMMR(steamID int) (mmr DotaMMR, err error)

type Japanese

type Japanese struct {
	Word    string `json:"word"`
	Reading string `json:"reading"`
}

type JishoResponse

type JishoResponse struct {
	Data []Datum `json:"data"`
}
type Link struct {
	Text string `json:"text"`
	URL  string `json:"url"`
}

type MmrEstimate

type MmrEstimate struct {
	Estimate int64 `json:"estimate"`
}

type Profile

type Profile struct {
	AccountID      int64       `json:"account_id"`
	Personaname    string      `json:"personaname"`
	Name           interface{} `json:"name"`
	Plus           bool        `json:"plus"`
	Cheese         int64       `json:"cheese"`
	Steamid        string      `json:"steamid"`
	Avatar         string      `json:"avatar"`
	Avatarmedium   string      `json:"avatarmedium"`
	Avatarfull     string      `json:"avatarfull"`
	Profileurl     string      `json:"profileurl"`
	LastLogin      string      `json:"last_login"`
	Loccountrycode string      `json:"loccountrycode"`
	IsContributor  bool        `json:"is_contributor"`
}

type Sense

type Sense struct {
	EnglishDefinitions []string      `json:"english_definitions"`
	PartsOfSpeech      []string      `json:"parts_of_speech"`
	Links              []Link        `json:"links"`
	Tags               []string      `json:"tags"`
	Restrictions       []interface{} `json:"restrictions"`
	SeeAlso            []string      `json:"see_also"`
	Antonyms           []string      `json:"antonyms"`
	Source             []interface{} `json:"source"`
	Info               []string      `json:"info"`
	Sentences          []interface{} `json:"sentences"`
}

type Weather

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

func NewWeatherClient

func NewWeatherClient(apiKey string) (weather Weather, err error)

func (Weather) GetCurrentWeather

func (w Weather) GetCurrentWeather(location string) (message string, err error)

func (Weather) GetWeather

func (w Weather) GetWeather(location string) (message string, err error)

Jump to

Keyboard shortcuts

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