-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/MajorGamerJay/discordChatEx…
…porter Merge new README and get better formatting
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 MajorGamerJay <majorgamerjay@protonmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# discordChatExporter | ||
## majorgamerjay@protonmail.com | ||
|
||
<img src="https://i.imgur.com/CsbAhWt.png" align="right" width="400px"> | ||
|
||
***>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. | ||
|
||
## How to use it | ||
|
||
This guide is aimed towards *nix users. For Windows users, you can use [Tyrrrz's DiscordChatExporter](https://github.com/Tyrrrz/DiscordChatExporter) or just change the file paths here to *windows style*. | ||
|
||
### Requirements | ||
|
||
1. Node & NPM | ||
2. Bot token (account token is also possible if you know where to modify the discord.js code for account token ;) ) | ||
|
||
### Downloading and installing | ||
|
||
1. Clone this repository | ||
2. In the repository, execute `npm install` | ||
|
||
This should install discord.js and dependencies for it. | ||
|
||
### Configuring | ||
|
||
1. Copy `config_template.json` from root directory of the repository to `src/config.json` | ||
2. See the options and configure accordingly. | ||
|
||
```json | ||
{ | ||
"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. | ||
|
||
### Using | ||
|
||
This should be done after it is configured properly or it will not work! | ||
|
||
1. Change directory to `src`, `cd src` | ||
2. Run `node index.js` | ||
|
||
## Issues and PRs | ||
|
||
### Issues | ||
|
||
If you have any issues, feel free to open up one! I'll help as much as I can. | ||
|
||
### Pull Requests | ||
|
||
Pull requests are welcomed. Just make sure the code is nice and readable. ;) (*even tho mine suckks*) | ||
|
||
## License | ||
|
||
This is under MIT License. Enjoy ;p |