package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Nov 20, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gamer provides Discord Game status generation.
type Gamer interface {
Game() *dg.Game
}
Gamer is a closure that generates a Discord Game status.
Queue provides a pseudo-random queue of Gamers.
Cycle continually updates status on the session.
Random calls Select on an index in [0, (len(q) + 1) / 2).
Select returns the Gamer at position i in the Queue, updating the order accordingly.
Static is a Gamer that returns itself.
Uptime is a Gamer that shows the duration since its value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.