npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discord-selfbot-transcripts

v0.0.3

Published

A nicely formatted html transcript generator for discord.js-selfbot-v13

Downloads

217

Readme


Discord.js-selfbot-v13 Selfbot Transcripts

Discord

Discord.js-selfbot-v13 Selfbot Transcripts is a modified version of discord-html-transcripts designed to generate visually appealing HTML transcripts for Discord messages. It processes Discord markdown like bold, italics, ~~strikethroughs~~, and more while formatting attachments and embeds beautifully. Built-in XSS protection prevents users from inserting HTML tags.

Updated Features:

  • Dynamic Favicon: The favicon updates based on the channel's avatar (DMs or server channels), providing a more personalized browsing experience.
  • Dynamic Tab Title: The tab title now reflects the current channel's name (or the recipient's username for DMs), making it easier to identify the content you are viewing.

This module is built purely for fun purposes with no intent to violate Discord's Terms of Service. Use it responsibly.

Note: This module is tailored for use with discord.js-selfbot-v13 v3.4.2.

HTML template credits to DiscordChatExporter.


Example Output

output


Usage

Example Usage with Built-in Message Fetcher

const discordTranscripts = require("discord-selfbot-transcripts");

const channel = message.channel; // or however you get your TextChannel

// Must be awaited
const attachment = await discordTranscripts.createTranscript(channel);

channel.send({
  files: [attachment],
});

Or Provide Your Own Messages

const discordTranscripts = require("discord-selfbot-transcripts");

const messages = someWayToGetMessages(); // Must be Collection<string, Message> or Message[]
const channel = someWayToGetChannel(); // Used for ticket name, guild icon, and guild name

// You do not need to await this
const attachment = discordTranscripts.generateFromMessages(messages, channel);

channel.send({
  files: [attachment],
});

Configuration

Built-in Message Fetcher

const attachment = await createTranscript(channel, {
  limit: -1, // Max amount of messages to fetch.
  returnBuffer: false, // Return a buffer instead of a MessageAttachment
  fileName: "transcript.html", // Only valid with returnBuffer false. Name of attachment.
});

Providing Your Own Messages

const attachment = await generateFromMessages(messages, channel, {
  returnBuffer: false, // Return a buffer instead of a MessageAttachment
  fileName: "transcript.html", // Only valid with returnBuffer false. Name of attachment.
});

Disclaimer: This modified version is a fork of discord-html-transcripts and is created solely for fun purposes. It is not intended for misuse or to violate Discord's Terms of Service. Always ensure compliance with platform policies when using such tools.