{"id":13569568,"url":"https://github.com/ras0q/traq-chat","last_synced_at":"2025-03-28T13:41:25.707Z","repository":{"id":57630187,"uuid":"407922625","full_name":"ras0q/traq-chat","owner":"ras0q","description":"Make creating traQ chat-bot easier.","archived":false,"fork":false,"pushed_at":"2024-05-30T02:53:38.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T13:53:58.056Z","etag":null,"topics":["bot","traq"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ras0q.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":"2021-09-18T17:17:59.000Z","updated_at":"2023-05-15T02:00:57.000Z","dependencies_parsed_at":"2024-11-05T01:33:18.129Z","dependency_job_id":"bf4e85f3-a01f-4221-886b-35aa12c0f748","html_url":"https://github.com/ras0q/traq-chat","commit_stats":null,"previous_names":["ras96/traq-chat"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ras0q%2Ftraq-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ras0q%2Ftraq-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ras0q%2Ftraq-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ras0q%2Ftraq-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ras0q","download_url":"https://codeload.github.com/ras0q/traq-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246040282,"owners_count":20713962,"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":["bot","traq"],"created_at":"2024-08-01T14:00:41.463Z","updated_at":"2025-03-28T13:41:25.687Z","avatar_url":"https://github.com/ras0q.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# traq-chat\n\nMake creating traQBot easier.\n\n## Example\n\n```go\npackage main\n\nimport (\n        \"fmt\"\n        \"os\"\n        \"regexp\"\n\n        traqchat \"github.com/ras0q/traq-chat\"\n)\n\nfunc main() {\n        q := traqchat.New(\n                os.Getenv(\"BOT_ID\"),\n                os.Getenv(\"BOT_USER_ID\"),\n                os.Getenv(\"BOT_ACCESS_TOKEN\"),\n                os.Getenv(\"BOT_VERIFICATION_TOKEN\"),\n        )\n\n        q.Hear(regexp.MustCompile(`ping`), func(res *traqchat.Response) error {\n                res.Send(\"pong!\")\n\n                return nil\n        })\n\n        q.Respond(regexp.MustCompile(`Hello`), hello)\n\n        q.Start(80)\n}\n\nfunc hello(res *traqchat.Response) error {\n        res.Reply(fmt.Sprintf(\"Hello, %s\\n\", res.Message.User.DisplayName))\n\n        return nil\n}\n```\n\n## More Information for traQ Bot\n\n- [traPtitech/traq-bot: traQ BOT用Goライブラリ](https://github.com/traPtitech/traq-bot)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fras0q%2Ftraq-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fras0q%2Ftraq-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fras0q%2Ftraq-chat/lists"}