{"id":13569520,"url":"https://github.com/traPtitech/traq-bot","last_synced_at":"2025-04-04T05:32:58.330Z","repository":{"id":52271328,"uuid":"185756346","full_name":"traPtitech/traq-bot","owner":"traPtitech","description":"traQ BOT用Goライブラリ","archived":false,"fork":false,"pushed_at":"2024-03-14T10:32:25.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-02T14:06:40.054Z","etag":null,"topics":["traq","traq-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/traPtitech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-05-09T08:16:01.000Z","updated_at":"2023-03-28T10:11:17.000Z","dependencies_parsed_at":"2024-01-16T20:24:18.258Z","dependency_job_id":"c41965b1-726e-4b9a-ac93-59413138550c","html_url":"https://github.com/traPtitech/traq-bot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traPtitech","download_url":"https://codeload.github.com/traPtitech/traq-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100124,"owners_count":17087387,"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":["traq","traq-bot"],"created_at":"2024-08-01T14:00:40.975Z","updated_at":"2024-11-05T01:32:41.649Z","avatar_url":"https://github.com/traPtitech.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# traQ BOTサーバーライブラリ\ntraQ BOTサーバーを簡単に作るためのライブラリです。\n\n`traQ---\u003eBOTサーバー`へのイベントの受け取り部分を補助します。`BOTサーバー---\u003etraQ`へのリクエストを行うための、traQ APIクライアントは含まれていません。\n\n## サンプル\n```go\npackage main\n\nimport (\n\t\"github.com/traPtitech/traq-bot\"\n\t\"log\"\n\t\"os\"\n)\n\nfunc main() {\n\tvt := os.Getenv(\"VERIFICATION_TOKEN\")\n\n\thandlers := traqbot.EventHandlers{}\n\thandlers.SetMessageCreatedHandler(func(payload *traqbot.MessageCreatedPayload) {\n\t\tlog.Println(\"=================================================\")\n\t\tlog.Printf(\"%sさんがメッセージを投稿しました。\\n\", payload.Message.User.DisplayName)\n\t\tlog.Println(\"メッセージ：\")\n\t\tlog.Println(payload.Message.Text)\n\t\tlog.Println(\"=================================================\")\n\t})\n\n\tserver := traqbot.NewBotServer(vt, handlers)\n\tlog.Fatal(server.ListenAndServe(\":80\"))\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtraPtitech%2Ftraq-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FtraPtitech%2Ftraq-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtraPtitech%2Ftraq-bot/lists"}