change posting behavior on startup

This commit is contained in:
Adora Laura Kalb 2023-07-11 10:36:56 +02:00
parent a4cdc10c4f
commit 2229bd9183
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 8 additions and 3 deletions

View file

@ -6,11 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Changed
- when starting the app in daemon mode, the app will now wait one complete interval until it posts the next post
instead of immediately posting one bundle
## [v0.2.0] - 2023-06-11 ## [v0.2.0] - 2023-06-11
### Added ### Added
- Added cli option `queue show` to list currently queued bundles [#2](https://git.lauka.net/lauralani/humble-bot/issues/2) - Added cli option `queue show` to list currently queued bundles
- Added cli option `queue fill` to query humblebundle.com for new bundles and then fill the queue [#2](https://git.lauka.net/lauralani/humble-bot/issues/2) [#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
- Added cli option `queue fill` to query humblebundle.com for new bundles and then fill the queue
[#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
- Added cli option `queue remove` to remove a queued up bundle [#2](https://git.lauka.net/lauralani/humble-bot/issues/2) - Added cli option `queue remove` to remove a queued up bundle [#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
### Fixed ### Fixed

View file

@ -28,7 +28,7 @@ func StartCronJobs() {
return return
} }
_, err = s.Every(viper.GetString("mastodon.postinterval")).Do(RunSingleQueueItem) _, err = s.Every(viper.GetString("mastodon.postinterval")).WaitForSchedule().Do(RunSingleQueueItem)
if err != nil { if err != nil {
log.Error().Str("func", "StartCronJobs").Str("job", "RunSingleQueueItem"). log.Error().Str("func", "StartCronJobs").Str("job", "RunSingleQueueItem").
Msgf("Scheduler Error: %q", err) Msgf("Scheduler Error: %q", err)