diamondburned / discord-export-messages

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-export-messages

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

Usage

Usages:
  DISCORD_TOKEN= discord-export-messages [flags] <channelID> <messageID>
  DISCORD_TOKEN= discord-export-messages [flags] <channelID> <messageIDFrom>..<messageIDTo>

Flags:
  -file string
    	output file (default "output")
  -md-allow-html
    	allow HTML in markdown output (default true)
  -output value
    	output mode (md, json) (default md)

Note

The DISCORD_TOKEN environment variable must be set with a valid Discord token to use the tool.

Warning

Using the tool with a user token is against the Discord Terms of Service. You may be banned if you use it with a user token. Use at your own risk.

Example Output

Diamond's avatar Diamond03/21 08:33 AM

real

plan to out all the EU people

topi's avatar topi03/21 08:33 AM

:BocchiHide:
# Ran with:
discord-export-messages --md-allow-html ${CHANNEL_ID} ${MESSAGE_ID[0]}..${MESSAGE_ID[1]}

About

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

License:Other


Languages

Language:Go 100.0%