redditDiscordBot

package
v0.0.0-...-248acc2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedditDiscordBot

type RedditDiscordBot struct {
	Ctx                   ctx.Ctx
	Store                 dbstore.Store
	Pollers               map[int]*redditJSON.Poller
	PollerResponseChannel chan []*redditJSON.RedditPost
}

func New

func New(ctx ctx.Ctx, store dbstore.Store) (*RedditDiscordBot, error)

func (*RedditDiscordBot) AddSubredditPoller

func (b *RedditDiscordBot) AddSubredditPoller(
	ctx ctx.Ctx,
	subreddit *dbstore.Subreddit,
) *redditJSON.Poller

func (*RedditDiscordBot) CreateRule

func (b *RedditDiscordBot) CreateRule(
	ctx context.Context,
	serverID string,
	channelID string,
	subredditID string,
	rule dbstore.Rule,
) error

Jump to

Keyboard shortcuts

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