npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

revce

v1.2.1

Published

A Revolt bot to export chat history.

Downloads

8

Readme

Revolt Chat Exporter (User Token Edition)

特定のチャンネルのチャット履歴をMarkdownファイルにエクスポートするためのシンプルなRevoltツールです。

機能

  • exporter.js: 指定した任意のチャンネルからチャット履歴をエクスポートします。
  • note_exporter.js: あなたの "Saved Notes"(保存済みノート)専用のチャット履歴をエクスポートします。
  • セルフホスト環境向けにAPIエンドポイントをカスタマイズ可能です。
  • 出力形式はMarkdownです。

前提条件

  • Node.js (v16以上)
  • npm

インストール

  1. このリポジトリをクローンします:

    git clone https://github.com/puyokura/revolt_tool_1.git
    cd revolt_tool_1
  2. 依存関係をインストールします:

    npm install

使い方 (Usage)

このツールは、コマンドライン引数またはconfig.jsonファイルを使用して設定できます。コマンドライン引数が指定された場合、config.jsonの設定よりも優先されます。

オススメ: コマンドライン引数での利用

revce コマンドに続けて、オプションを指定して実行します。

revce --token "あなたのユーザートークン" --channel "エクスポートしたいチャンネルID"

利用可能なオプション

| Option | Alias | Description | Required | | :--- | :--- | :--- | :--- | | --token | -t | あなたのRevoltユーザートークン。 | はい | | --channel | -c | エクスポートしたいチャンネルのID。 | はい | | --api | -a | Revolt APIのエンドポイントURL。 | いいえ | | --help | -h | ヘルプメッセージを表示します。 | いいえ |

従来の方法: config.json での設定

従来通り、config.jsonファイルで設定することも可能です。

スクリプトを実行する前に、ルートディレクトリに config.json ファイルを作成し、あなたのRevoltユーザートークンを設定する必要があります。

セキュリティのため、config.json.gitignore に含まれており、リポジトリにはアップロードされません。

config.json の作成

実行したいスクリプトに応じて、以下の内容で config.json を作成してください。

exporter.js 用 (任意のチャンネル)

特定のチャンネルをエクスポートする場合は、チャンネルIDも指定します。

{
  "userToken": "ここにあなたのユーザートークンを貼り付け",
  "targetChannelId": "エクスポートしたいチャンネルのID",
  "apiURL": "https://api.revolt.chat"
}
  • apiURL (任意): あなたのRevoltインスタンスのAPIエンドポイント。デフォルトは https://api.revolt.chat です。
note_exporter.js 用 ("Saved Notes")

"Saved Notes" をエクスポートする場合は、userToken のみで動作します。

{
  "userToken": "ここにあなたのユーザートークンを貼り付け",
  "apiURL": "https://api.revolt.chat"
}

スクリプトの実行

config.json を使用する場合、以下のコマンドで実行します。

# exporter.js (任意のチャンネル)
npm start
# または
node exporter.js

# note_exporter.js ("Saved Notes")
node note_exporter.js

ツールは指定された場所からすべてのメッセージを取得し、exports ディレクトリにMarkdownファイルとして保存します。