{"id":41577348,"url":"https://github.com/puyokura/revolt.chat_cli_cliant","last_synced_at":"2026-01-24T08:20:36.989Z","repository":{"id":307757835,"uuid":"1029516211","full_name":"puyokura/revolt.chat_cli_cliant","owner":"puyokura","description":"revolt.chat_cli_cliant","archived":false,"fork":false,"pushed_at":"2025-11-11T13:14:00.000Z","size":508,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-11T15:10:11.468Z","etag":null,"topics":["cli","nodejs","revolt","revolt-chat","terminal","typescript"],"latest_commit_sha":null,"homepage":"https://revolt-chat-cli-client.pages.dev","language":"TypeScript","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/puyokura.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,"zenodo":null}},"created_at":"2025-07-31T06:57:53.000Z","updated_at":"2025-11-11T13:14:03.000Z","dependencies_parsed_at":"2025-08-02T03:34:34.583Z","dependency_job_id":"9bfd357e-f4f7-4628-9c57-20b1daeec7c9","html_url":"https://github.com/puyokura/revolt.chat_cli_cliant","commit_stats":null,"previous_names":["puyokura/revolt.chat_cli_cliant"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/puyokura/revolt.chat_cli_cliant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puyokura%2Frevolt.chat_cli_cliant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puyokura%2Frevolt.chat_cli_cliant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puyokura%2Frevolt.chat_cli_cliant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puyokura%2Frevolt.chat_cli_cliant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puyokura","download_url":"https://codeload.github.com/puyokura/revolt.chat_cli_cliant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puyokura%2Frevolt.chat_cli_cliant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28720498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","nodejs","revolt","revolt-chat","terminal","typescript"],"created_at":"2026-01-24T08:20:36.103Z","updated_at":"2026-01-24T08:20:36.984Z","avatar_url":"https://github.com/puyokura.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Revolt.chat CLIクライアント\n\n## 概要\n\nこのアプリケーションは、ターミナルから[Revolt.chat](https://revolt.chat)に接続し、リアルタイムでメッセージの送受信ができる、インタラクティブなコマンドラインインターフェース（CLI）クライアントです。\n\n## 主な機能\n\n-   **インタラクティブなログイン**: メールアドレスとパスワードで安全にログインします。セッショントークンはローカルに保存され、次回以降の起動を高速化します。\n-   **サーバーとチャンネルの選択**: 参加しているサーバーとチャンネルを一覧表示し、最後に選択したものを記憶します。\n-   **リアルタイムなメッセージング**: メッセージを瞬時に送受信できます。\n-   **複数行入力**: 空の行でEnterキーを押すだけで、複数行のメッセージを簡単に送信できます。\n-   **多彩なスラッシュコマンド**:\n    -   `/help`: 利用可能なすべてのコマンド一覧を表示します。\n    -   `/users`: 現在のチャンネルにいるユーザーを一覧表示します。\n    -   `/whoami`: あなたのユーザー情報を表示します。\n    -   `/nick \u003cname\u003e`: サーバーでのニックネームを設定します。\n    -   `/profile \u003cuser\u003e`: ユーザーのプロフィールを表示します。\n    -   `/status \u003cpres\u003e [msg]`: ステータス（online, idle, busy, invisible）とメッセージを設定します。\n    -   `/upload`: ローカルマシンからファイルをアップロードします。\n    -   `/reply \u003cid\u003e \u003cmsg\u003e`: 特定のメッセージに返信します。\n    -   `/edit \u003cid\u003e \u003cmsg\u003e`: 自分のメッセージを編集します。\n    -   `/delete \u003cid\u003e`: 自分のメッセージを削除します。\n    -   `/logout`: 現在のセッションからログアウトし、設定ファイルを削除します。\n    -   `/leave`: 現在のチャンネルから退出します。\n    -   `/exit`: アプリケーションを終了します。\n    -   `/config`: CLIの設定を表示・変更します。\n    -   `/userconfig`: ユーザー設定を表示・変更します。\n    -   `/serverconfig`: サーバー設定を表示・変更します。\n    -   `/kick \u003cuser\u003e`: サーバーからユーザーをキックします。\n    -   `/ban \u003cuser\u003e [reason]`: サーバーからユーザーをBANします。\n    -   `/timeout \u003cuser\u003e \u003cduration_in_seconds\u003e [reason]`: ユーザーを一定時間タイムアウトさせます。\n    \n## プロジェクトの構造\n\nこのプロジェクトはTypeScriptで書かれており、以下のファイルで構成されています。\n\n-   `src/index.ts`: アプリケーションのメインエントリーポイント。ログイン、WebSocket接続、チャンネル選択、メッセージループの開始など、全体の流れを制御します。\n-   `src/lib/api.ts`: Revolt APIとの通信を担当します。ログイン、メッセージの送受信、ファイルアップロードなど、すべてのAPIリクエストがこのファイルに集約されています。\n-   `src/lib/commands.ts`: `/`で始まるスラッシュコマンドの処理ロジックを実装しています。各コマンドに対応する関数が含まれています。\n-   `src/lib/config.ts`: ユーザーの認証トークンや最後に選択したチャンネルなど、設定情報の読み書きを行います。設定はホームディレクトリの`.revolt-cli-config.json`に保存されます。\n-   `src/lib/types.ts`: APIレスポンスなどで使用されるデータ構造（User, Channel, Messageなど）の型定義をまとめています。\n-   `src/lib/ui.ts`: ターミナル上での表示やユーザーとの対話（inquirerによるプロンプトなど）を担当します。メッセージのフォーマットやチャンネル選択のUIなどが含まれています。\n\n## 開発者向けガイド\n\n### 前提条件\n\n-   [Node.js](https://nodejs.org/) (v16以上を推奨)\n\n### インストール\n\n1.  リポジトリをクローンします:\n    ```sh\n    git clone https://github.com/puyokura/revolt.chat_cli_cliant.git\n    cd revolt.chat_cli_cliant\n    ```\n\n2.  依存関係をインストールします:\n    ```sh\n    npm install\n    ```\n\n### クライアントの実行\n\n開発モードでクライアントを実行するには、以下のコマンドを使用します:\n\n```sh\nnpm start\n```\n\n## 配布用のビルド\n\nこのプロジェクトは`pkg`を利用して、単一の実行可能ファイルを生成します。これにより、Node.jsがインストールされていない環境でもアプリケーションを実行できます。\n\n### Windows向けのビルド\n\nWindows (64-bit) 用の`.exe`ファイルを生成するには、以下のコマンドを実行します:\n\n```sh\nnpm run package\n```\n\nコマンドが完了すると、プロジェクトのルートディレクトリに実行可能ファイル（例: `revolt.exe`）が生成されます。\n\n## ライセンス\n\nこのプロジェクトはISCライセンスの下で公開されています。\n\n## あとがき\nバグなどをIssueで報告してくれると助かります。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuyokura%2Frevolt.chat_cli_cliant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuyokura%2Frevolt.chat_cli_cliant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuyokura%2Frevolt.chat_cli_cliant/lists"}