|Jamie Quigley ca9adb60b3||1 hour ago|
|.idea||5 months ago|
|src||1 hour ago|
|.gitignore||5 months ago|
|Cargo.lock||11 hours ago|
|Cargo.toml||1 day ago|
|LICENCE||6 months ago|
|readme.md||5 months ago|
|rustfmt.toml||5 months ago|
A small discord bot to archive the messages in a discord text channel.
This is still WIP. The HTML and JSON modes are vaguely complete, but they may still change in the future.
src/main.rsand change the value of the constant
OUTPUT_DIRECTORYto your desired download location.
cargo run. To provide the token, you have 3 options:
DISCORD_TOKENto the token before running.
!archive <channel> [mode(s)], where
<channel>is the channel you want to archive, and
[mode(s)]is a possibly comma-separated list of modes. Valid modes are:
json,html. All modes are enabled if this parameter is omitted.
The HTML generated is very messy, but it should be well-formed. This means that an html formatter such as prettier may be used to clean it up. I'd recommend this for archival purposes. The JSON should be clean as it is generated by serde.
I have some planned features that I am yet to finish (or even start) implementing:
Based on Serenity.
Inspired by this similar program.
The HTML / CSS templates are derived from the ones from DiscordChatExporter, under the terms of the GNU GPL.
Available under the terms of the GNU AGPL.