From 7c5090d2f23e332f1075a3383a80492b234e0ef5 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Wed, 12 Jul 2017 20:18:00 +0300 Subject: [PATCH] Add license and readme --- DiscordChatExporter.sln | 8 +++++++- License.txt | 21 +++++++++++++++++++++ Readme.md | 20 ++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 License.txt create mode 100644 Readme.md diff --git a/DiscordChatExporter.sln b/DiscordChatExporter.sln index dff9ab34..a046a46b 100644 --- a/DiscordChatExporter.sln +++ b/DiscordChatExporter.sln @@ -3,7 +3,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26430.13 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscordChatExporter", "DiscordChatExporter\DiscordChatExporter.csproj", "{4BE915D1-129C-49E2-860E-62045ACA5EAD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DiscordChatExporter", "DiscordChatExporter\DiscordChatExporter.csproj", "{4BE915D1-129C-49E2-860E-62045ACA5EAD}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EA305DD5-1F98-415D-B6C4-65053A58F914}" + ProjectSection(SolutionItems) = preProject + License.txt = License.txt + Readme.md = Readme.md + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/License.txt b/License.txt new file mode 100644 index 00000000..dfc594e7 --- /dev/null +++ b/License.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Alexey Golub + +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. \ No newline at end of file diff --git a/Readme.md b/Readme.md new file mode 100644 index 00000000..e9dc4e78 --- /dev/null +++ b/Readme.md @@ -0,0 +1,20 @@ +# DiscordChatExporter + +Command line executable that can export [Discord](https://discordapp.com) channel chat logs to a pretty HTML file. + +**Usage examples:** + +Executing the application requires an access token and channel ID as parameters. + +You can get your token by opening the Discord app, pressing `Ctrl+Shift+I`, navigating to `Storage > LocalStorage > discordapp.com` and extracting `token`'s value. + +You can get the channel ID by enabling `Developer Mode` in `Settings > Appearance` and then right clicking on the channel and clicking on `Copy ID`. + +- `DiscordChatExporter.exe -t REkOTVqm9RWOTNOLCdiuMpWd.QiglBz.Lub0E0TZ1xX4ZxCtnwtpBhWt3v1 -c 459360869055190534` + +**Libraries used:** + +- [CommandLineParser](https://github.com/gsscoder/commandline) +- [HtmlAgilityPack](https://github.com/zzzprojects/html-agility-pack) +- [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) +- [Tyrrrz.Extensions](https://github.com/Tyrrrz/Extensions)