Documentation ¶
Overview ¶
Package snart contains the general workings of a Snart Bot.
Index ¶
Constants ¶
View Source
const BaseIntents = gateway.IntentGuildMessages
BaseIntents is the basic intents needed by a Bot.
View Source
const KeyToken = "token"
KeyToken is the Confy key used to fetch the Bot's token.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶ added in v0.4.1
Bot holds all the workings of a Snart bot.
func (*Bot) CycleGamers ¶ added in v0.5.0
func (b *Bot) CycleGamers()
CycleGamers continually updates the Bot's status using a random Gamer, on an interval.
type GamerStatic ¶ added in v0.5.0
GamerStatic is an Activity that is a Gamer.
func (GamerStatic) Activity ¶ added in v0.5.0
func (s GamerStatic) Activity() discord.Activity
Activity simply returns the GamerStatic as an Activity.
type GamerTimer ¶ added in v0.5.0
GamerTimer is a Time that is a Gamer.
func (GamerTimer) Activity ¶ added in v0.5.0
func (t GamerTimer) Activity() discord.Activity
Activity returns an Activity that describes the duration since the GamerTimer.
Click to show internal directories.
Click to hide internal directories.