Documentation ¶
Overview ¶
Package bot implements the core HortBot IRC message handling logic.
Index ¶
Constants ¶
View Source
const (
// DefaultBullet is the default bullet used when the channel's bullet is unset.
DefaultBullet = "[HB]"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is an IRC bot. It should only be used once.
func (*Bot) Handle ¶
Handle handles a single IRC message, sent via the specific origin. It always succeeds, but may log information about any internal errors.
type Config ¶
type Config struct { DB *sql.DB Redis *redis.DB Sender Sender Notifier Notifier Clock clock.Clock Rand Rand LastFM lastfm.API YouTube youtube.API XKCD xkcd.API ExtraLife extralife.API Twitch twitch.API Steam steam.API TinyURL tinyurl.API Urban urban.API Simple simple.API HLTB hltb.API BulletMap map[string]string Cooldown int Admins []string SuperAdmins []string WhitelistEnabled bool Whitelist []string WebAddr string WebAddrMap map[string]string NoDedupe bool PublicJoin bool PublicJoinDisabled []string BetaFeatures []string GlobalIgnore []string Cron CronConfig PassthroughPanics bool }
Config configures the bot.
type CronConfig ¶
Source Files ¶
- access_level.go
- accesslevel_string.go
- actions.go
- autoreplies.go
- bot.go
- builtin_commands.go
- cmd_admin.go
- cmd_autoreplies.go
- cmd_command.go
- cmd_filters.go
- cmd_fun.go
- cmd_highlight.go
- cmd_lastfm.go
- cmd_levels.go
- cmd_list.go
- cmd_management.go
- cmd_misc.go
- cmd_moderation.go
- cmd_quote.go
- cmd_raffle.go
- cmd_random.go
- cmd_repeat.go
- cmd_schedule.go
- cmd_settings.go
- cmd_steam.go
- cmd_twitch.go
- cmd_var.go
- cmd_website.go
- cron_tasks.go
- custom_command.go
- deps.go
- filters.go
- handle.go
- handlers.go
- helpers.go
- interfaces.go
- metrics.go
- notice.go
- rdb.go
- repeat.go
- session.go
- testing.go
- user_state.go
- var.go
Click to show internal directories.
Click to hide internal directories.