Skip to content

A java library for generating nicely formatted HTML transcripts with Javacord

License

Notifications You must be signed in to change notification settings

dungeon-hub/discord-html-transcripts

 
 

Repository files navigation

Discord (JDA) HTML Transcripts

Discord HTML Transcripts is a node.js module (recode on JDA) (again recoded on Javacord) 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 Javacord.

HTML Template stolen from DiscordChatExporter.

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 library for generating nicely formatted HTML transcripts with Javacord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 71.9%
  • HTML 28.1%