chatbot

package
v0.0.0-...-a97d171 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CApp            = "game"            //
	CAppFollowers   = "followers"       //
	CAppPlayers     = "players"         //
	CAppPrice       = "price"           //
	CAppsRandom     = "random"          //
	CAppsNew        = "new"             //
	CAppsPopular    = "top"             //
	CAppsTrending   = "trending-games"  //
	CGroup          = "group"           //
	CGroupsTrending = "trending-groups" //
	CPlayer         = "player"          //
	CPlayerApps     = "games"           // Count
	CPlayerLevel    = "level"           //
	CPlayerPlaytime = "playtime"        //
	CPlayerRecent   = "recent"          //
	CPlayerUpdate   = "update"          //
	CPlayerWishlist = "wishlist"        //
	CPlayerLibrary  = "library"         //
	CHelp           = "help"            //
	CFeedback       = "feedback"        //
	CInvite         = "invite"          //
	CSettings       = "settings"        //
	CSteamOnline    = "online"          //
)

These are the discord slash command names, if changed, the old one needs to be deleted

Variables

View Source
var (
	RegexCache   = make(map[string]*regexp.Regexp, len(CommandRegister))
	CommandCache = make(map[string]Command, len(CommandRegister))
)

Functions

This section is empty.

Types

type App

type App interface {
	GetID() int
	GetName() string
	GetPath() string
	GetPathAbsolute() string
	GetHeaderImage() string
	GetPlayersPeakWeek() int
	GetFollowers() string
	GetPrices() helpers.ProductPrices
	GetReviewScore() string
	GetReleaseDateNice() string
	GetGroupID() string
}

type Command

type Command interface {
	ID() string
	Regex() string
	DisableCache() bool
	PerProdCode() bool
	Output(authorID string, region steamapi.ProductCC, inputs map[string]string) (discordgo.MessageSend, error)
	Example() string
	Description() string
	Type() CommandType
	Slash() []*discordgo.ApplicationCommandOption
	LegacyInputs(input string) map[string]string
	AllowDM() bool
}

type CommandApp

type CommandApp struct {
}

func (CommandApp) AllowDM

func (CommandApp) AllowDM() bool

func (CommandApp) Description

func (CommandApp) Description() string

func (CommandApp) DisableCache

func (CommandApp) DisableCache() bool

func (CommandApp) Example

func (CommandApp) Example() string

func (CommandApp) ID

func (c CommandApp) ID() string

func (CommandApp) LegacyInputs

func (c CommandApp) LegacyInputs(input string) map[string]string

func (CommandApp) Output

func (c CommandApp) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandApp) PerProdCode

func (CommandApp) PerProdCode() bool

func (CommandApp) Regex

func (CommandApp) Regex() string

func (CommandApp) Slash

func (CommandApp) Type

func (CommandApp) Type() CommandType

type CommandAppFollowers

type CommandAppFollowers struct {
}

func (CommandAppFollowers) AllowDM

func (CommandAppFollowers) AllowDM() bool

func (CommandAppFollowers) Description

func (CommandAppFollowers) Description() string

func (CommandAppFollowers) DisableCache

func (CommandAppFollowers) DisableCache() bool

func (CommandAppFollowers) Example

func (CommandAppFollowers) Example() string

func (CommandAppFollowers) ID

func (c CommandAppFollowers) ID() string

func (CommandAppFollowers) LegacyInputs

func (c CommandAppFollowers) LegacyInputs(input string) map[string]string

func (CommandAppFollowers) Output

func (c CommandAppFollowers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppFollowers) PerProdCode

func (CommandAppFollowers) PerProdCode() bool

func (CommandAppFollowers) Regex

func (CommandAppFollowers) Regex() string

func (CommandAppFollowers) Slash

func (CommandAppFollowers) Type

type CommandAppPlayers

type CommandAppPlayers struct {
}

func (CommandAppPlayers) AllowDM

func (CommandAppPlayers) AllowDM() bool

func (CommandAppPlayers) Description

func (CommandAppPlayers) Description() string

func (CommandAppPlayers) DisableCache

func (CommandAppPlayers) DisableCache() bool

func (CommandAppPlayers) Example

func (CommandAppPlayers) Example() string

func (CommandAppPlayers) ID

func (c CommandAppPlayers) ID() string

func (CommandAppPlayers) LegacyInputs

func (c CommandAppPlayers) LegacyInputs(input string) map[string]string

func (CommandAppPlayers) Output

func (c CommandAppPlayers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppPlayers) PerProdCode

func (CommandAppPlayers) PerProdCode() bool

func (CommandAppPlayers) Regex

func (CommandAppPlayers) Regex() string

func (CommandAppPlayers) Slash

func (CommandAppPlayers) Type

type CommandAppPrice

type CommandAppPrice struct {
}

func (CommandAppPrice) AllowDM

func (CommandAppPrice) AllowDM() bool

func (CommandAppPrice) Description

func (CommandAppPrice) Description() string

func (CommandAppPrice) DisableCache

func (CommandAppPrice) DisableCache() bool

func (CommandAppPrice) Example

func (CommandAppPrice) Example() string

func (CommandAppPrice) ID

func (c CommandAppPrice) ID() string

func (CommandAppPrice) LegacyInputs

func (c CommandAppPrice) LegacyInputs(input string) map[string]string

func (CommandAppPrice) Output

func (c CommandAppPrice) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppPrice) PerProdCode

func (CommandAppPrice) PerProdCode() bool

func (CommandAppPrice) Regex

func (CommandAppPrice) Regex() string

func (CommandAppPrice) Slash

func (CommandAppPrice) Type

type CommandAppRandom

type CommandAppRandom struct {
}

func (CommandAppRandom) AllowDM

func (CommandAppRandom) AllowDM() bool

func (CommandAppRandom) Description

func (CommandAppRandom) Description() string

func (CommandAppRandom) DisableCache

func (CommandAppRandom) DisableCache() bool

func (CommandAppRandom) Example

func (CommandAppRandom) Example() string

func (CommandAppRandom) ID

func (c CommandAppRandom) ID() string

func (CommandAppRandom) LegacyInputs

func (c CommandAppRandom) LegacyInputs(input string) map[string]string

func (CommandAppRandom) Output

func (c CommandAppRandom) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppRandom) PerProdCode

func (CommandAppRandom) PerProdCode() bool

func (CommandAppRandom) Regex

func (CommandAppRandom) Regex() string

func (CommandAppRandom) Slash

func (CommandAppRandom) Type

type CommandAppsNew

type CommandAppsNew struct {
}

func (CommandAppsNew) AllowDM

func (CommandAppsNew) AllowDM() bool

func (CommandAppsNew) Description

func (CommandAppsNew) Description() string

func (CommandAppsNew) DisableCache

func (CommandAppsNew) DisableCache() bool

func (CommandAppsNew) Example

func (CommandAppsNew) Example() string

func (CommandAppsNew) ID

func (c CommandAppsNew) ID() string

func (CommandAppsNew) LegacyInputs

func (c CommandAppsNew) LegacyInputs(_ string) map[string]string

func (CommandAppsNew) Output

func (CommandAppsNew) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppsNew) PerProdCode

func (CommandAppsNew) PerProdCode() bool

func (CommandAppsNew) Regex

func (CommandAppsNew) Regex() string

func (CommandAppsNew) Slash

func (CommandAppsNew) Type

func (CommandAppsNew) Type() CommandType

type CommandAppsPopular

type CommandAppsPopular struct {
}

func (CommandAppsPopular) AllowDM

func (CommandAppsPopular) AllowDM() bool

func (CommandAppsPopular) Description

func (CommandAppsPopular) Description() string

func (CommandAppsPopular) DisableCache

func (CommandAppsPopular) DisableCache() bool

func (CommandAppsPopular) Example

func (CommandAppsPopular) Example() string

func (CommandAppsPopular) ID

func (c CommandAppsPopular) ID() string

func (CommandAppsPopular) LegacyInputs

func (CommandAppsPopular) LegacyInputs(_ string) map[string]string

func (CommandAppsPopular) Output

func (CommandAppsPopular) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppsPopular) PerProdCode

func (CommandAppsPopular) PerProdCode() bool

func (CommandAppsPopular) Regex

func (CommandAppsPopular) Regex() string

func (CommandAppsPopular) Slash

func (CommandAppsPopular) Type

type CommandAppsTrending

type CommandAppsTrending struct {
}

func (CommandAppsTrending) AllowDM

func (CommandAppsTrending) AllowDM() bool

func (CommandAppsTrending) Description

func (CommandAppsTrending) Description() string

func (CommandAppsTrending) DisableCache

func (CommandAppsTrending) DisableCache() bool

func (CommandAppsTrending) Example

func (CommandAppsTrending) Example() string

func (CommandAppsTrending) ID

func (c CommandAppsTrending) ID() string

func (CommandAppsTrending) LegacyInputs

func (CommandAppsTrending) LegacyInputs(_ string) map[string]string

func (CommandAppsTrending) Output

func (CommandAppsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandAppsTrending) PerProdCode

func (CommandAppsTrending) PerProdCode() bool

func (CommandAppsTrending) Regex

func (CommandAppsTrending) Regex() string

func (CommandAppsTrending) Slash

func (CommandAppsTrending) Type

type CommandFeedback

type CommandFeedback struct {
}

func (CommandFeedback) AllowDM

func (CommandFeedback) AllowDM() bool

func (CommandFeedback) Description

func (CommandFeedback) Description() string

func (CommandFeedback) DisableCache

func (CommandFeedback) DisableCache() bool

func (CommandFeedback) Example

func (CommandFeedback) Example() string

func (CommandFeedback) ID

func (c CommandFeedback) ID() string

func (CommandFeedback) LegacyInputs

func (CommandFeedback) LegacyInputs(_ string) map[string]string

func (CommandFeedback) Output

func (CommandFeedback) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandFeedback) PerProdCode

func (CommandFeedback) PerProdCode() bool

func (CommandFeedback) Regex

func (CommandFeedback) Regex() string

func (CommandFeedback) Slash

func (CommandFeedback) Type

type CommandGroup

type CommandGroup struct {
}

func (CommandGroup) AllowDM

func (CommandGroup) AllowDM() bool

func (CommandGroup) Description

func (CommandGroup) Description() string

func (CommandGroup) DisableCache

func (CommandGroup) DisableCache() bool

func (CommandGroup) Example

func (CommandGroup) Example() string

func (CommandGroup) ID

func (c CommandGroup) ID() string

func (CommandGroup) LegacyInputs

func (c CommandGroup) LegacyInputs(input string) map[string]string

func (CommandGroup) Output

func (c CommandGroup) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandGroup) PerProdCode

func (CommandGroup) PerProdCode() bool

func (CommandGroup) Regex

func (CommandGroup) Regex() string

func (CommandGroup) Slash

func (CommandGroup) Type

func (CommandGroup) Type() CommandType

type CommandGroupsTrending

type CommandGroupsTrending struct {
}

func (CommandGroupsTrending) AllowDM

func (CommandGroupsTrending) AllowDM() bool

func (CommandGroupsTrending) Description

func (CommandGroupsTrending) Description() string

func (CommandGroupsTrending) DisableCache

func (CommandGroupsTrending) DisableCache() bool

func (CommandGroupsTrending) Example

func (CommandGroupsTrending) Example() string

func (CommandGroupsTrending) ID

func (CommandGroupsTrending) LegacyInputs

func (CommandGroupsTrending) LegacyInputs(_ string) map[string]string

func (CommandGroupsTrending) Output

func (CommandGroupsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandGroupsTrending) PerProdCode

func (CommandGroupsTrending) PerProdCode() bool

func (CommandGroupsTrending) Regex

func (CommandGroupsTrending) Regex() string

func (CommandGroupsTrending) Slash

func (CommandGroupsTrending) Type

type CommandHelp

type CommandHelp struct {
}

func (CommandHelp) AllowDM

func (CommandHelp) AllowDM() bool

func (CommandHelp) Description

func (CommandHelp) Description() string

func (CommandHelp) DisableCache

func (CommandHelp) DisableCache() bool

func (CommandHelp) Example

func (CommandHelp) Example() string

func (CommandHelp) ID

func (c CommandHelp) ID() string

func (CommandHelp) LegacyInputs

func (CommandHelp) LegacyInputs(_ string) map[string]string

func (CommandHelp) Output

func (CommandHelp) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandHelp) PerProdCode

func (CommandHelp) PerProdCode() bool

func (CommandHelp) Regex

func (CommandHelp) Regex() string

func (CommandHelp) Slash

func (CommandHelp) Type

func (CommandHelp) Type() CommandType

type CommandInvite

type CommandInvite struct {
}

func (CommandInvite) AllowDM

func (CommandInvite) AllowDM() bool

func (CommandInvite) Description

func (CommandInvite) Description() string

func (CommandInvite) DisableCache

func (CommandInvite) DisableCache() bool

func (CommandInvite) Example

func (CommandInvite) Example() string

func (CommandInvite) ID

func (c CommandInvite) ID() string

func (CommandInvite) LegacyInputs

func (CommandInvite) LegacyInputs(_ string) map[string]string

func (CommandInvite) Output

func (CommandInvite) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandInvite) PerProdCode

func (CommandInvite) PerProdCode() bool

func (CommandInvite) Regex

func (CommandInvite) Regex() string

func (CommandInvite) Slash

func (CommandInvite) Type

func (CommandInvite) Type() CommandType

type CommandPlayer

type CommandPlayer struct {
}

func (CommandPlayer) AllowDM

func (CommandPlayer) AllowDM() bool

func (CommandPlayer) Description

func (CommandPlayer) Description() string

func (CommandPlayer) DisableCache

func (CommandPlayer) DisableCache() bool

func (CommandPlayer) Example

func (CommandPlayer) Example() string

func (CommandPlayer) ID

func (c CommandPlayer) ID() string

func (CommandPlayer) LegacyInputs

func (c CommandPlayer) LegacyInputs(input string) map[string]string

func (CommandPlayer) Output

func (c CommandPlayer) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayer) PerProdCode

func (CommandPlayer) PerProdCode() bool

func (CommandPlayer) Regex

func (CommandPlayer) Regex() string

func (CommandPlayer) Slash

func (CommandPlayer) Type

func (CommandPlayer) Type() CommandType

type CommandPlayerApps

type CommandPlayerApps struct {
}

func (CommandPlayerApps) AllowDM

func (CommandPlayerApps) AllowDM() bool

func (CommandPlayerApps) Description

func (CommandPlayerApps) Description() string

func (CommandPlayerApps) DisableCache

func (CommandPlayerApps) DisableCache() bool

func (CommandPlayerApps) Example

func (CommandPlayerApps) Example() string

func (CommandPlayerApps) ID

func (c CommandPlayerApps) ID() string

func (CommandPlayerApps) LegacyInputs

func (c CommandPlayerApps) LegacyInputs(input string) map[string]string

func (CommandPlayerApps) Output

func (c CommandPlayerApps) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerApps) PerProdCode

func (CommandPlayerApps) PerProdCode() bool

func (CommandPlayerApps) Regex

func (CommandPlayerApps) Regex() string

func (CommandPlayerApps) Slash

func (CommandPlayerApps) Type

type CommandPlayerLevel

type CommandPlayerLevel struct {
}

func (CommandPlayerLevel) AllowDM

func (CommandPlayerLevel) AllowDM() bool

func (CommandPlayerLevel) Description

func (CommandPlayerLevel) Description() string

func (CommandPlayerLevel) DisableCache

func (CommandPlayerLevel) DisableCache() bool

func (CommandPlayerLevel) Example

func (CommandPlayerLevel) Example() string

func (CommandPlayerLevel) ID

func (c CommandPlayerLevel) ID() string

func (CommandPlayerLevel) LegacyInputs

func (c CommandPlayerLevel) LegacyInputs(input string) map[string]string

func (CommandPlayerLevel) Output

func (c CommandPlayerLevel) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerLevel) PerProdCode

func (CommandPlayerLevel) PerProdCode() bool

func (CommandPlayerLevel) Regex

func (CommandPlayerLevel) Regex() string

func (CommandPlayerLevel) Slash

func (CommandPlayerLevel) Type

type CommandPlayerLibrary

type CommandPlayerLibrary struct {
}

func (CommandPlayerLibrary) AllowDM

func (CommandPlayerLibrary) AllowDM() bool

func (CommandPlayerLibrary) Description

func (CommandPlayerLibrary) Description() string

func (CommandPlayerLibrary) DisableCache

func (CommandPlayerLibrary) DisableCache() bool

func (CommandPlayerLibrary) Example

func (CommandPlayerLibrary) Example() string

func (CommandPlayerLibrary) ID

func (CommandPlayerLibrary) LegacyInputs

func (c CommandPlayerLibrary) LegacyInputs(input string) map[string]string

func (CommandPlayerLibrary) Output

func (c CommandPlayerLibrary) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerLibrary) PerProdCode

func (CommandPlayerLibrary) PerProdCode() bool

func (CommandPlayerLibrary) Regex

func (CommandPlayerLibrary) Regex() string

func (CommandPlayerLibrary) Slash

func (CommandPlayerLibrary) Type

type CommandPlayerPlaytime

type CommandPlayerPlaytime struct {
}

func (CommandPlayerPlaytime) AllowDM

func (CommandPlayerPlaytime) AllowDM() bool

func (CommandPlayerPlaytime) Description

func (CommandPlayerPlaytime) Description() string

func (CommandPlayerPlaytime) DisableCache

func (CommandPlayerPlaytime) DisableCache() bool

func (CommandPlayerPlaytime) Example

func (CommandPlayerPlaytime) Example() string

func (CommandPlayerPlaytime) ID

func (CommandPlayerPlaytime) LegacyInputs

func (c CommandPlayerPlaytime) LegacyInputs(input string) map[string]string

func (CommandPlayerPlaytime) Output

func (c CommandPlayerPlaytime) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerPlaytime) PerProdCode

func (CommandPlayerPlaytime) PerProdCode() bool

func (CommandPlayerPlaytime) Regex

func (CommandPlayerPlaytime) Regex() string

func (CommandPlayerPlaytime) Slash

func (CommandPlayerPlaytime) Type

type CommandPlayerRecent

type CommandPlayerRecent struct {
}

func (CommandPlayerRecent) AllowDM

func (CommandPlayerRecent) AllowDM() bool

func (CommandPlayerRecent) Description

func (CommandPlayerRecent) Description() string

func (CommandPlayerRecent) DisableCache

func (CommandPlayerRecent) DisableCache() bool

func (CommandPlayerRecent) Example

func (CommandPlayerRecent) Example() string

func (CommandPlayerRecent) ID

func (c CommandPlayerRecent) ID() string

func (CommandPlayerRecent) LegacyInputs

func (c CommandPlayerRecent) LegacyInputs(input string) map[string]string

func (CommandPlayerRecent) Output

func (c CommandPlayerRecent) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerRecent) PerProdCode

func (CommandPlayerRecent) PerProdCode() bool

func (CommandPlayerRecent) Regex

func (CommandPlayerRecent) Regex() string

func (CommandPlayerRecent) Slash

func (CommandPlayerRecent) Type

type CommandPlayerUpdate

type CommandPlayerUpdate struct {
}

func (CommandPlayerUpdate) AllowDM

func (CommandPlayerUpdate) AllowDM() bool

func (CommandPlayerUpdate) Description

func (CommandPlayerUpdate) Description() string

func (CommandPlayerUpdate) DisableCache

func (CommandPlayerUpdate) DisableCache() bool

func (CommandPlayerUpdate) Example

func (CommandPlayerUpdate) Example() string

func (CommandPlayerUpdate) ID

func (c CommandPlayerUpdate) ID() string

func (CommandPlayerUpdate) LegacyInputs

func (c CommandPlayerUpdate) LegacyInputs(input string) map[string]string

func (CommandPlayerUpdate) Output

func (c CommandPlayerUpdate) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerUpdate) PerProdCode

func (CommandPlayerUpdate) PerProdCode() bool

func (CommandPlayerUpdate) Regex

func (CommandPlayerUpdate) Regex() string

func (CommandPlayerUpdate) Slash

func (CommandPlayerUpdate) Type

type CommandPlayerWishlist

type CommandPlayerWishlist struct {
}

func (CommandPlayerWishlist) AllowDM

func (CommandPlayerWishlist) AllowDM() bool

func (CommandPlayerWishlist) Description

func (CommandPlayerWishlist) Description() string

func (CommandPlayerWishlist) DisableCache

func (CommandPlayerWishlist) DisableCache() bool

func (CommandPlayerWishlist) Example

func (CommandPlayerWishlist) Example() string

func (CommandPlayerWishlist) ID

func (CommandPlayerWishlist) LegacyInputs

func (c CommandPlayerWishlist) LegacyInputs(input string) map[string]string

func (CommandPlayerWishlist) Output

func (c CommandPlayerWishlist) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandPlayerWishlist) PerProdCode

func (CommandPlayerWishlist) PerProdCode() bool

func (CommandPlayerWishlist) Regex

func (CommandPlayerWishlist) Regex() string

func (CommandPlayerWishlist) Slash

func (CommandPlayerWishlist) Type

type CommandSettings

type CommandSettings struct {
}

func (CommandSettings) AllowDM

func (CommandSettings) AllowDM() bool

func (CommandSettings) Description

func (CommandSettings) Description() string

func (CommandSettings) DisableCache

func (CommandSettings) DisableCache() bool

func (CommandSettings) Example

func (CommandSettings) Example() string

func (CommandSettings) ID

func (c CommandSettings) ID() string

func (CommandSettings) LegacyInputs

func (c CommandSettings) LegacyInputs(input string) map[string]string

func (CommandSettings) Output

func (c CommandSettings) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)

func (CommandSettings) PerProdCode

func (CommandSettings) PerProdCode() bool

func (CommandSettings) Regex

func (CommandSettings) Regex() string

func (CommandSettings) Slash

func (CommandSettings) Type

type CommandSteamOnline

type CommandSteamOnline struct {
}

func (CommandSteamOnline) AllowDM

func (CommandSteamOnline) AllowDM() bool

func (CommandSteamOnline) Description

func (CommandSteamOnline) Description() string

func (CommandSteamOnline) DisableCache

func (CommandSteamOnline) DisableCache() bool

func (CommandSteamOnline) Example

func (CommandSteamOnline) Example() string

func (CommandSteamOnline) ID

func (c CommandSteamOnline) ID() string

func (CommandSteamOnline) LegacyInputs

func (CommandSteamOnline) LegacyInputs(_ string) map[string]string

func (CommandSteamOnline) Output

func (c CommandSteamOnline) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)

func (CommandSteamOnline) PerProdCode

func (CommandSteamOnline) PerProdCode() bool

func (CommandSteamOnline) Regex

func (CommandSteamOnline) Regex() string

func (CommandSteamOnline) Slash

func (CommandSteamOnline) Type

type CommandType

type CommandType string
const (
	TypeGame   CommandType = "Game"
	TypePlayer CommandType = "Player"
	TypeGroup  CommandType = "Group"
	TypeOther  CommandType = "Misc"
)

func (CommandType) Order

func (ct CommandType) Order() int

type Player

type Player interface {
	GetName() string
	GetPath() string
	GetPathAbsolute() string
	GetAvatarAbsolute() string
	GetGamesCount() int
	GetAchievements() int
	GetPlaytime() int
	GetLevel() int
	GetBadges() int
	GetBadgesFoil() int
	GetRanks() map[helpers.RankMetric]int
	GetVACBans() int
	GetGameBans() int
	GetLastBan() time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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