Versions in this module Expand all Collapse all v0 v0.5.7 Jun 14, 2021 Changes in this version + type AdminLeveller interface + AdminLevel func(source string) int + type AutoStarter interface + AutoStart func() + type Bot interface + Connect func() error + Disconnect func(msg string) + HumanReadableSource func(source string) string + IsCommandPrefix func(string) (string, bool) + JoinChannel func(name string) + Reload func(unmarshaller Unmarshaler) error + Run func() error + SendAdminMessage func(msg string) + SendRaw func(raw string) + StaticCommandPrefixes func() []string + type CommandResponder interface + ReturnMessage func(msg string) + ReturnNotice func(msg string) + type Game interface + GetComment func() string + GetName func() string + OnJoin func(source, channel string) + OnKick func(source, channel, kickee, message string) + OnMessage func(source, target, msg string, isAction bool) + OnNick func(source, newnick string) + OnPart func(source, channel, message string) + OnQuit func(source, message string) + SendLineFromOtherGame func(msg string, source Game) + UpdateFromConfig func(*tomlconf.Game) error + type GameManager interface + AddGame func(game Game) error + ForEachGame func(f func(Game), skip []Game) + GameExists func(name string) bool + GetGameFromName func(name string) Game + ReloadGames func(configs []tomlconf.Game) + StopAllGames func() + type Hooker interface + HookJoin func(func(source, channel string)) + HookKick func(func(source, channel, target, message string)) + HookMessage func(func(source, channel, message string, isAction bool)) + HookNick func(func(source, newNick string)) + HookPart func(func(source, channel, message string)) + HookPrivateMessage func(func(source, channel, message string)) + HookQuit func(func(source, message string)) + type Messager interface + SendMessage func(target, message string) + SendNotice func(target, message string) + type Runner interface + IsRunning func() bool + Run func() error + type Statuser interface + Status func() string + type StopOrKiller interface + StopOrKill func() error + StopOrKillTimeout func(duration time.Duration) error + StopOrKillWaitgroup func(group *sync.WaitGroup) + type Unmarshaler interface + Unmarshal func(interface{}) error v0.5.6 Sep 25, 2020