chat.jsonl of that day’s messages and the files shared in it. Members
become one JSON profile each.
Setup
Create a Discord application with a bot, turn on its intents and add it to the server.Create the bot and invite it
Create the bot and invite it
- Open the Discord Developer Portal,
click New Application and name it (for example
Mirage). - Under Bot, click Reset Token and copy the bot token.
- On the same page, under Privileged Gateway Intents, turn on
Message Content Intent; without it, message text and attachments
come back empty. Turn on Server Members Intent for the
members/folder and fordiscord memberswithout--query. - Under OAuth2, URL Generator, select the
botscope and the View Channels and Read Message History permissions. Add Send Messages for the CLI’s writes and Attach Files forsend --file. - Open the generated URL in a browser and add the bot to the server.
Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- A name is
<display-name>__<id>, spaces and emoji kept; quote it in the shell. - Each channel lists one folder per day for the 30 days up to its newest
message;
start_timeandend_timeset another range. - A
chat.jsonlline is one message as Discord’s API returns it, with.content,.author.usernameand.attachments.
Sample runs
discord CLI.
SDK guides
Python
Every config field, the VFS.md and write support.
TypeScript
Every config field, the VFS.md and write support.