Documentation ¶
Index ¶
- func BoolEmoji(b bool) string
- func CreateResult(app SteamApp) tele.Result
- func New() (*tele.Bot, error)
- func QueryResults(games []SteamApp) tele.Results
- func RatingPercentage(f float64) string
- func RatingStar(i int) string
- func Start(b *tele.Bot)
- type GameData
- type ProtonDBApp
- type SDHQApp
- type SteamApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResult ¶
func QueryResults ¶
func RatingPercentage ¶
func RatingStar ¶
Types ¶
type GameData ¶
type GameData struct { Steam SteamApp ProtonDB ProtonDBApp SDHQ SDHQApp }
type ProtonDBApp ¶
type ProtonDBApp struct { BestReportedTier string `json:"bestReportedTier"` Confidence string `json:"confidence"` Score float64 `json:"score"` Tier string `json:"tier"` Total int `json:"total"` TrendingTier string `json:"trendingTier"` }
func SearchProtonDB ¶
func SearchProtonDB(steamId string) ProtonDBApp
type SDHQApp ¶
type SDHQApp struct { Link string `json:"link"` Acf struct { BestOnDeck bool `json:"best_on_deck"` SdhqRating int `json:"sdhq_rating"` SdhqRatingCategories struct { Performance int `json:"performance"` Visuals int `json:"visuals"` Stability int `json:"stability"` Controls int `json:"controls"` Battery int `json:"battery"` ScoreBreakdown string `json:"score_breakdown"` } `json:"sdhq_rating_categories"` } `json:"acf"` }
func SearchSDHQ ¶
Click to show internal directories.
Click to hide internal directories.