Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgeCache ¶
type BadgeFetcher ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(fetcher BadgeFetcher) *Cache
func (*Cache) MatchBadgeSet ¶
func (c *Cache) MatchBadgeSet(broadcasterID string, ircBadge []twitchirc.Badge) map[string]twitchapi.BadgeVersion
badges=subscriber/6,arc-raiders-launch-2025/1 MatchBadgeSet uses the irc badge tag data to find and match the global and channel badges. The key of the result map is the badge set id with the matched version.
func (*Cache) RefreshChannel ¶
type DisplayManager ¶
type DisplayManager interface {
Convert(unit kittyimg.DisplayUnit) (kittyimg.KittyDisplayUnit, error)
}
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
func NewReplacer ¶
func NewReplacer(httpClient *http.Client, cache BadgeCache, enableGraphics bool, theme save.Theme, displayManager DisplayManager) *Replacer
func (*Replacer) InjectContributorBadge ¶ added in v0.8.0
func (r *Replacer) InjectContributorBadge(loginName string, badges map[string]string) (string, error)
InjectContributorBadge adds a Chatuino contributor badge to the badge map if the user is a contributor. The badge key "!chatuino" sorts before all other badges (ASCII '!' < letters).
Click to show internal directories.
Click to hide internal directories.