Documentation ¶
Index ¶
- func ParseCustomCommand(s string) (cmd string, args []string)
- type ChannelMap
- func (c *ChannelMap) ChooseLoth(playerName, channel, botName string, d time.Duration, lowNames []string) (*Loth, bool, []*Player)
- func (c *ChannelMap) DelPlayer(channel, playerName string)
- func (c *ChannelMap) DelPlayerAllChannels(playerName string)
- func (c *ChannelMap) Find(playerName, channelName string) []*Player
- func (c *ChannelMap) ForEach(fn func(channel string, pm *PlayerMap))
- func (c *ChannelMap) GetActivePlayers() *PlayerMap
- func (c *ChannelMap) GetChannel(channel string) (*PlayerMap, bool)
- func (c *ChannelMap) GetPlayer(playerName string) (*Player, []string)
- func (c *ChannelMap) Loth(channel string) *Loth
- func (c *ChannelMap) PlayerMap(channel string) (*PlayerMap, bool)
- func (c *ChannelMap) SetPlayer(channel string, p *Player)
- func (c *ChannelMap) SetPlayerStatus(channel, playerName string, status flist.Status)
- type CmdLog
- type CmdStat
- type Command
- type Feedback
- type Image
- type Loth
- type LothLog
- type Message
- type Player
- type PlayerMap
- func (c *PlayerMap) DelPlayer(playerName string)
- func (c *PlayerMap) ForEach(fn func(name string, p *Player))
- func (c *PlayerMap) GetPlayer(playerName string) (*Player, bool)
- func (c *PlayerMap) SetPlayer(p *Player)
- func (c *PlayerMap) SetPlayerFave(playerName string, fave bool)
- func (c *PlayerMap) SetPlayerRole(playerName string, role flist.Role)
- func (c *PlayerMap) SetPlayerStatus(playerName string, status flist.Status)
- type Store
- type Targets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCustomCommand ¶ added in v1.3.0
Types ¶
type ChannelMap ¶ added in v1.3.0
func NewChannelMap ¶ added in v1.3.0
func NewChannelMap() *ChannelMap
func (*ChannelMap) ChooseLoth ¶ added in v1.3.0
func (*ChannelMap) DelPlayer ¶ added in v1.3.0
func (c *ChannelMap) DelPlayer(channel, playerName string)
func (*ChannelMap) DelPlayerAllChannels ¶ added in v1.3.0
func (c *ChannelMap) DelPlayerAllChannels(playerName string)
func (*ChannelMap) Find ¶ added in v1.7.0
func (c *ChannelMap) Find(playerName, channelName string) []*Player
func (*ChannelMap) ForEach ¶ added in v1.3.0
func (c *ChannelMap) ForEach(fn func(channel string, pm *PlayerMap))
func (*ChannelMap) GetActivePlayers ¶ added in v1.3.0
func (c *ChannelMap) GetActivePlayers() *PlayerMap
func (*ChannelMap) GetChannel ¶ added in v1.3.0
func (c *ChannelMap) GetChannel(channel string) (*PlayerMap, bool)
func (*ChannelMap) GetPlayer ¶ added in v1.3.0
func (c *ChannelMap) GetPlayer(playerName string) (*Player, []string)
func (*ChannelMap) Loth ¶ added in v1.5.2
func (c *ChannelMap) Loth(channel string) *Loth
func (*ChannelMap) PlayerMap ¶ added in v1.7.0
func (c *ChannelMap) PlayerMap(channel string) (*PlayerMap, bool)
func (*ChannelMap) SetPlayer ¶ added in v1.3.0
func (c *ChannelMap) SetPlayer(channel string, p *Player)
func (*ChannelMap) SetPlayerStatus ¶ added in v1.3.0
func (c *ChannelMap) SetPlayerStatus(channel, playerName string, status flist.Status)
type CmdLog ¶ added in v1.3.0
type Image ¶
type LothLog ¶ added in v1.3.0
type PlayerMap ¶ added in v1.3.0
func NewPlayerMap ¶ added in v1.3.0
func NewPlayerMap() *PlayerMap
func (*PlayerMap) SetPlayerFave ¶ added in v1.3.1
func (*PlayerMap) SetPlayerRole ¶ added in v1.3.0
type Store ¶
type Store interface { AddMessageWithURLs(m *Message, urls []string) error GetImages(limit, offset int, reverse, filterDone bool) ([]*Image, error) ToggleImageDone(id int64) error SetImageKuid(id int64, kuid int) error AddFeedback(f *Feedback) error GetAllFeedback(limit, offset int) ([]*Feedback, error) GetRecentFeedback(limit, offset int) ([]*Feedback, error) AddCmdLog(e *CmdLog) error GetRecentCmdLogs(limit, offset int) ([]*CmdLog, error) CmdStats() ([]*CmdStat, error) AddLothLog(*LothLog) error GetRecentLothLogs(limit, offset int) ([]*LothLog, error) }
Click to show internal directories.
Click to hide internal directories.