bot

package
v0.0.0-...-14b48b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSubject = "/r/ClosetSanta notification"

Variables

View Source
var (
	Log log15.Logger
)

Functions

func Init

func Init(cfg *Config) error

func PmSubredditWithTemplate

func PmSubredditWithTemplate(sub Subreddit, subject string, t *template.Template) error

func PmUserWithTemplate

func PmUserWithTemplate(user ulist.User, subject string, t *template.Template) error

Types

type CSBot

type CSBot struct {
	reddit.Bot
}

type Config

type Config struct {
	Useragent    string
	ClientID     string
	ClientSecret string
	Username     string
	Password     string
}

type Subreddit

type Subreddit struct {
	// contains filtered or unexported fields
}

func NewSubreddit

func NewSubreddit(name string) Subreddit

func (Subreddit) Name

func (sub Subreddit) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL