diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-18 22:51:50 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-18 22:51:50 +0300 |
| commit | 3287dbc49f3a9df43b086da84516b7e0a9902707 (patch) | |
| tree | a10b1d450614cc96c16e313e33547e0b265c3c58 /cmd | |
| parent | 49750f5fb56b94ce0ee7a86b833aa7abf6db66ae (diff) | |
implement pause days
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go index 3a4a676..d77cd3d 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -26,6 +26,7 @@ func main() { secretsConfigPath = *flag.String("secretsConfig", secretsConfigPath, "Gos' secret config") platforms := flag.String("platforms", "Mastodon:500,LinkedIn:1000", "Platforms enabled plus their post size limits") target := flag.Int("target", 2, "How many posts per week are the target?") + pauseDays := flag.Int("pauseDays", 3, "How many days until next post can be posted?") lookback := flag.Int("lookback", 30, "How many days look back in time for posting history") flag.Parse() @@ -39,6 +40,7 @@ func main() { GosDir: *gosDir, Platforms: make(map[string]int), Target: *target, + PauseDays: *pauseDays, Lookback: time.Duration(*lookback) * time.Hour * 24, SecretsConfigPath: secretsConfigPath, Secrets: secrets, |
