{"id":21968473,"url":"https://github.com/robertgzr/joe-bolt-memory","last_synced_at":"2026-05-10T05:04:42.356Z","repository":{"id":57511190,"uuid":"207243946","full_name":"robertgzr/joe-bolt-memory","owner":"robertgzr","description":"Bolt memory for the Joe bot library","archived":false,"fork":false,"pushed_at":"2023-03-14T11:23:40.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T22:17:06.016Z","etag":null,"topics":["boltdb","bot","joe"],"latest_commit_sha":null,"homepage":null,"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/robertgzr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-09T06:53:42.000Z","updated_at":"2023-03-14T11:23:45.000Z","dependencies_parsed_at":"2024-11-29T13:56:13.790Z","dependency_job_id":"f112efee-3d6a-4645-92f8-a5a322bfac15","html_url":"https://github.com/robertgzr/joe-bolt-memory","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/robertgzr/joe-bolt-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgzr%2Fjoe-bolt-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgzr%2Fjoe-bolt-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgzr%2Fjoe-bolt-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgzr%2Fjoe-bolt-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertgzr","download_url":"https://codeload.github.com/robertgzr/joe-bolt-memory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgzr%2Fjoe-bolt-memory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265432173,"owners_count":23764037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["boltdb","bot","joe"],"created_at":"2024-11-29T13:56:07.260Z","updated_at":"2026-05-10T05:04:37.319Z","avatar_url":"https://github.com/robertgzr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eJoe Bot - Bolt Memory\u003c/h1\u003e\n\u003cp align=\"center\"\u003eIntegration Joe with Bolt. https://github.com/go-joe/joe\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/robertgzr/joe-bolt-memory/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/robertgzr/joe-bolt-memory.svg?label=version\u0026color=brightgreen\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://godoc.org/github.com/robertgzr/joe-bolt-memory\"\u003e\u003cimg src=\"https://img.shields.io/badge/godoc-reference-blue.svg?color=blue\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nThis repository contains a module for the [Joe Bot library][joe]. Built using \n[etcd-io/bbolt][bbolt].\n\n## Getting Started\n\nThis library is packaged using [Go modules][go-modules]. You can get it via:\n\n```\ngo get github.com/robertgzr/joe-bolt-memory\n```\n\n### Example usage\n\n```go\npackage main\n\nimport (\n\t\"github.com/go-joe/joe\"\n\t\"github.com/robertgzr/joe-bolt-memory\"\n)\n\nfunc main() {\n\tb := joe.New(\"example-bot\",\n\t\tbolt.Memory(os.Getenv(\"DB_PATH\")),\n\t\t…\n\t)\n\t\n\tb.Respond(\"remember (.+) is (.+)\", b.Remember)\n\tb.Respond(\"what is (.+)\", b.WhatIs)\n\n\terr := b.Run()\n\tif err != nil {\n\t\tb.Logger.Fatal(err.Error())\n\t}\n}\n\nfunc (b *Bot) Remember(msg joe.Message) error {\n\tkey, value := msg.Matches[0], msg.Matches[1]\n\tmsg.Respond(\"OK, I'll remember %s is %s\", key, value)\n\treturn b.Store.Set(key, value)\n}\n\nfunc (b *Bot) WhatIs(msg joe.Message) error {\n\tkey := msg.Matches[0]\n\tvar value string\n\tok, err := b.Store.Get(key, \u0026value)\n\tif err != nil {\n\t\treturn errors.Wrapf(err, \"failed to retrieve key %q from brain\", key)\n\t}\n\tif ok {\n\t\tmsg.Respond(\"%s is %s\", key, value)\n\t} else {\n\t\tmsg.Respond(\"I do not remember %q\", key)\n\t}\n\treturn nil\n}\n```\n## License\n\n[BSD-3-Clause](LICENSE)\n\n[joe]: https://github.com/go-joe/joe\n[bbolt]: https://github.com/etcd-io/bbolt\n[go-modules]: https://github.com/golang/go/wiki/Modules\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgzr%2Fjoe-bolt-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertgzr%2Fjoe-bolt-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgzr%2Fjoe-bolt-memory/lists"}