{"id":23282030,"url":"https://github.com/go-joe/cron","last_synced_at":"2026-05-02T06:40:40.221Z","repository":{"id":57486248,"uuid":"178544413","full_name":"go-joe/cron","owner":"go-joe","description":"Cron jobs for the Joe bot library","archived":false,"fork":false,"pushed_at":"2020-05-03T08:48:28.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T21:30:33.070Z","etag":null,"topics":["bot","chat","chatbot-framework","joe","slack"],"latest_commit_sha":null,"homepage":"https://github.com/go-joe/joe","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-joe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-30T10:31:24.000Z","updated_at":"2020-05-03T08:48:31.000Z","dependencies_parsed_at":"2022-09-01T22:31:06.932Z","dependency_job_id":null,"html_url":"https://github.com/go-joe/cron","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/go-joe/cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-joe%2Fcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-joe%2Fcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-joe%2Fcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-joe%2Fcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-joe","download_url":"https://codeload.github.com/go-joe/cron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-joe%2Fcron/sbom","scorecard":{"id":432019,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-joe/cron","commit":"a76a16f0e524d68a7be213713eeb6bbf129c1fdd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:36:07.637Z","repository_id":57486248,"created_at":"2025-08-19T03:36:07.637Z","updated_at":"2025-08-19T03:36:07.637Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32525896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","chat","chatbot-framework","joe","slack"],"created_at":"2024-12-20T00:13:42.366Z","updated_at":"2026-05-02T06:40:40.208Z","avatar_url":"https://github.com/go-joe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eJoe Bot - Cron Module\u003c/h1\u003e\n\u003cp align=\"center\"\u003eEmiting events on recurring schedules. https://github.com/go-joe/joe\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/go-joe/cron/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/go-joe/cron.svg?label=version\u0026color=brightgreen\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://circleci.com/gh/go-joe/cron/tree/master\"\u003e\u003cimg src=\"https://circleci.com/gh/go-joe/cron/tree/master.svg?style=shield\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://goreportcard.com/report/github.com/go-joe/cron\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/go-joe/cron\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://codecov.io/gh/go-joe/cron\"\u003e\u003cimg src=\"https://codecov.io/gh/go-joe/cron/branch/master/graph/badge.svg\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://pkg.go.dev/github.com/go-joe/cron?tab=doc\"\u003e\u003cimg src=\"https://img.shields.io/badge/godoc-reference-blue.svg?color=blue\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/go-joe/cron/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-BSD--3--Clause-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nThis repository contains a module for the [Joe Bot library][joe].\n\n## Getting Started\n\nThis library is packaged as [Go module][go-modules]. You can get it via:\n\n```bash\ngo get github.com/go-joe/cron\n```\n\n### Example usage\n\nThis module allows you to run arbitrary functions or emit events on a schedule\nusing a [cron expressions][cron] or simply an interval expressed as `time.Duration`.\n\n```go\npackage main\n\nimport (\n\t\"time\"\n\t\"github.com/go-joe/joe\"\n\t\"github.com/go-joe/cron\"\n)\n\ntype MyEvent struct {}\n\nfunc main() {\n\tb := joe.New(\"example-bot\",\n\t\t// emit a cron.Event once every day at midnight\n\t\tcron.ScheduleEvent(\"0 0 * * *\"),\n\t\t\n\t\t// emit your own custom event every day at 09:00\n\t\tcron.ScheduleEvent(\"0 9 * * *\", MyEvent{}), \n\t\t\n\t\t// emit your own custom event every day at 09:00:30\n\t\tcron.ScheduleEvent(\"30 0 9 * * *\", MyEvent{}),\n\n\t\t// cron expressions can be hard to read and might be overkill\n\t\tcron.ScheduleEventEvery(time.Hour, MyEvent{}), \n\t\t\n\t\t// sometimes its easier to use a function\n\t\tcron.ScheduleFunc(\"0 9 * * *\", func() { /* TODO */ }), \n\t\t\n\t\t// functions can also be scheduled on simple intervals\n\t\tcron.ScheduleFuncEvery(5*time.Minute, func() { /* TODO */ }),\n    )\n\t\n\terr := b.Run()\n\tif err != nil {\n\t\tb.Logger.Fatal(err.Error())\n\t}\n}\n```\n\n## Built With\n\n* [robfig/cron](https://github.com/robfig/cron) - A cron library for go\n* [zap](https://github.com/uber-go/zap) - Blazing fast, structured, leveled logging in Go\n* [testify](https://github.com/stretchr/testify) - A simple unit test library\n\n## Contributing\n\nIf you want to hack on this repository, please read the short [CONTRIBUTING.md](CONTRIBUTING.md)\nguide first.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available,\nsee the [tags on this repository][tags]. \n\n## Authors\n\n- **Friedrich Große** - *Initial work* - [fgrosse](https://github.com/fgrosse)\n- **Julius Bachnick** - *Update cron library to v3* - [juliusbachnick](https://github.com/juliusbachnick)\n\nSee also the list of [contributors][contributors] who participated in this project.\n\n## License\n\nThis project is licensed under the BSD-3-Clause License - see the [LICENSE](LICENSE) file for details.\n\n[joe]: https://github.com/go-joe/joe\n[go-modules]: https://github.com/golang/go/wiki/Modules\n[tags]: https://github.com/go-joe/cron/tags\n[contributors]: https://github.com/go-joe/cron/contributors\n[cron]: https://en.wikipedia.org/wiki/Cron#Overview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-joe%2Fcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-joe%2Fcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-joe%2Fcron/lists"}