>tfw u cant export messages on discord
This is a Discord chat exporter made in NodeJS. It supports exporting as JSON and markdown (for now). Configuration is simple and everything is in one config.json
file. If you like this, consider contributing to this repository or sharing this to others.
This guide is aimed towards *nix users. For Windows users, you can use Tyrrrz's DiscordChatExporter or just change the file paths here to windows style.
- Node & NPM
- Bot token (account token is also possible if you know where to modify the discord.js code for account token ;) )
- Clone this repository
- In the repository, execute
npm install
This should install discord.js and dependencies for it.
- Copy
config_template.json
from root directory of the repository tosrc/config.json
- See the options and configure accordingly.
{
"token": "<insert your token here>",
"channelID": "<insert channel id here>",
"export_type": "<json/md>",
"export_to": "output/messages.<json/md>"
}
In export_type
, it should be either json
or md
.
It is recommended to put the export path (export_to
) to be output/<filename>
or outside the repository as this could make trouble with the repository itself.
This should be done after it is configured properly or it will not work!
- Change directory to
src
,cd src
- Make a directory called output,
mkdir output
- Run
node index.js
If you have any issues, feel free to open up one! I'll help as much as I can.
Pull requests are welcomed. Just make sure the code is nice and readable. ;) (even tho mine suckks)
This is under MIT License. Enjoy ;p