Mansitoh / discord-html-transcripts

A java libraty for generating nicely formatted HTML transcripts with JDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord (JDA) HTML Transcripts

Discord

Discord HTML Transcripts is a node.js module (recode on JDA) to generate nice looking HTML transcripts. Processes discord markdown like bold, italics, strikethroughs, and more. Nicely formats attachments and embeds. Built in XSS protection, preventing users from inserting html tags.

This module is designed to work with JDA.

HTML Template stolen from DiscordChatExporter.

Example Output

output

Usage

Example usage using the built in message fetcher.

DiscordHtmlTranscripts transcript = DiscordHtmlTranscripts.getInstance();

transcript.createTranscript(textChannel);

Or if you prefer, you can pass in your own messages.

DiscordHtmlTranscripts transcript = DiscordHtmlTranscripts.getInstance();

transcript.generateFromMessages(messages); // return to InputStream

About

A java libraty for generating nicely formatted HTML transcripts with JDA


Languages

Language:Java 100.0%Language:HTML 0.0%