config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TwitterUsername string
	TwitterPassword string

	// Path to the feeds JSON file (default: data/rss_feeds.json)
	FeedsFile string

	// Category filter — empty means all categories
	// e.g. "tech", "cybersecurity", "world" — matches category field in rss_feeds.json
	Category string

	// How often to poll all feeds
	PollInterval time.Duration

	// Ignore articles older than this
	MaxArticleAge time.Duration

	// Minimum gap between tweets to avoid rate limits
	TweetDelay time.Duration

	// Max tweets per run (0 = unlimited)
	MaxTweetsPerRun int

	// POST_MODE controls content type: "news", "meme", or "mixed"
	PostMode string

	// Groq API key for AI-generated meme/humor posts
	GroqAPIKey string

	// Imgflip credentials for meme image generation (free at imgflip.com)
	ImgflipUsername string
	ImgflipPassword string
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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