{"id":24929823,"url":"https://github.com/traptitech/traq-system-bot","last_synced_at":"2025-06-11T03:10:20.334Z","repository":{"id":98921501,"uuid":"207122591","full_name":"traPtitech/traq-system-bot","owner":"traPtitech","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-23T09:57:37.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-02T13:51:54.991Z","etag":null,"topics":["traq"],"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,"publiccode":null,"codemeta":null}},"created_at":"2019-09-08T14:14:08.000Z","updated_at":"2024-08-23T09:57:40.000Z","dependencies_parsed_at":"2024-03-07T13:29:16.015Z","dependency_job_id":"c2c3f5c7-542b-4b76-9f85-f90eb7e8ec14","html_url":"https://github.com/traPtitech/traq-system-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-system-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-system-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-system-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Ftraq-system-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traPtitech","download_url":"https://codeload.github.com/traPtitech/traq-system-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246036831,"owners_count":20713301,"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"],"created_at":"2025-02-02T13:51:57.456Z","updated_at":"2025-03-28T13:28:58.752Z","avatar_url":"https://github.com/traPtitech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traq-system-bot\n\n[![GitHub release](https://img.shields.io/github/release/traPtitech/traq-system-bot.svg)](https://github.com/traPtitech/traq-system-bot/releases/)\n\n[traQ](https://github.com/traPtitech/traQ) のシステムBOTです。\n\n以下のイベントの通知を、設定したチャンネルに行います。\n\n- ユーザーの加入 (`USER_CREATED`)\n- ユーザーの再加入 (`USER_ACTIVATED`)\n- チャンネルの作成 (`CHANNEL_CREATED`)\n- スタンプの作成 (`STAMP_CREATED`)\n\n## 設定方法\n\n推奨: [bot-console](https://github.com/traPtitech/traQ-bot-console) を事前に設置すること。\n\n1. (bot-console) 特権を持った（`privileged`）BOTをWebSocket Modeで作成する。\n2. (bot-console) 上記のイベント購読設定を行う。\n3. 本BOTを、下記の環境変数を設定してデプロイする。\n    - [本リポジトリが公開するDockerイメージ](https://github.com/traPtitech/traq-system-bot/pkgs/container/traq-system-bot) を使うと楽。\n    - 最新バージョンはGitHubのリリースページを確認してください。\n\n### 環境変数\n\n- `BOT_SYSTEM_MESSAGE_CHANNEL_ID`: 通知メッセージを投稿したいチャンネルのUUID。\n- `TRAQ_ORIGIN`: 接続するtraQインスタンスのURL。WebSocketプロトコルを使用。例: `wss://q.trap.jp`\n- `BOT_ACCESS_TOKEN`: Botのアクセストークン。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraptitech%2Ftraq-system-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraptitech%2Ftraq-system-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraptitech%2Ftraq-system-bot/lists"}