Documentation
¶
Overview ¶
Package bot is an IRC bot that posts latest entries from Reddit communities
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = &http.Client{}
Client let's you customize the underlying http client
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { // IRC server Server string // IRC nick Nick string // IRC channels Channels []string // Use SSL for IRC SSL bool // IRC password Password string // Subreddits to track // Format: "/r/SomeSubreddit/new" // Multireddit: "/user/someuser/m/some_multi_reddit/new/" Subreddits []string // Subreddit polling interval CheckInterval time.Duration // Round polling to nearest duration RoundInterval time.Duration // Custom user agent so that reddit doesn't ban us // Essential! UserAgent string // Print subreddit's name in output PrintSub bool // contains filtered or unexported fields }
Bot contains bot's settings
Click to show internal directories.
Click to hide internal directories.