Documentation
¶
Index ¶
- type Bot
- type CachedColor
- type DataCache
- func (d *DataCache) AddGuild(gid string)
- func (d *DataCache) GetColor(s *discordgo.Session, gid, uid string) (int, string, string)
- func (d *DataCache) GetName(s *discordgo.Session, gid, uid string) (string, bool)
- func (d *DataCache) Loglevel() int
- func (d *DataCache) SetLoglevel(l int)
- func (d *DataCache) UUID() string
- func (d *DataCache) UpdateCache(s *discordgo.Session, gs ifaces.IGameServer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is an object representing a Discord bot
func New ¶
func New(c ifaces.IConfigurator, wg *sync.WaitGroup, exit chan struct{}) *Bot
New returns a new instance of discord.Bot
func (*Bot) SetChatPipe ¶
SetChatPipe sets the current channel to pipe chats into
func (*Bot) SetLoglevel ¶
SetLoglevel sets the current loglevel for the object
func (*Bot) Start ¶
func (b *Bot) Start(gs ifaces.IGameServer)
Start initializes the discordgo backend
type CachedColor ¶
CachedColor describes a role color that has been cached with its Number, hex code, and shortcode
type DataCache ¶
type DataCache struct {
// contains filtered or unexported fields
}
DataCache represents a cache of member nicknames on registered Guilds
func (*DataCache) SetLoglevel ¶
SetLoglevel sets the current loglevel for the object
func (*DataCache) UpdateCache ¶
func (d *DataCache) UpdateCache(s *discordgo.Session, gs ifaces.IGameServer)
UpdateCache updates the internal name cache for nicknames and linked player names. Linked player names takes precedence.
Click to show internal directories.
Click to hide internal directories.