Skip to content

Repository files navigation

interactions-transcript

This project is built on an improved version of mahtoid's DiscordChatExporterPy library, ported to an extension of interactions.py, another Discord API wrapper, with extra features. You can find the archived original by ItsRqtl.

WIP: This extension is currently work-in-progress, which means it might not function well

Installation

Install from github

pip install git+https://github.com/DRagssss/interactions-transcript.git

Build from source

git clone https://github.com/DRagssss/interactions-transcript.git
cd interactions-transcript
pip install .

Usage

Using the extension

awaitGuildText.get_transcript(limit=...)

Using the extension

frominteractionsimportClientfrominteractions.ext.transcriptimportget_transcript
...
awaitget_transcript(GuildText, limit=...)
...
client.start()

Parameters of method get_transcript:

ParameterTypeDescriptionDefault Value
channelinteractions.GuildTextThe channel to get transcript from
limitintThe limit of messages to get100
pytz_timezonestrThe timezone to use"UTC"
military_timeboolWhether to use military time or notFalse
fancy_timeboolWhether to use fancy time or not (only with html mode)False
modestrThe mode to use for the transcript (html, json, csv, or plain)"html"

Attributions

This project is an up-to-date fork of the repository by ItsRqtl which uses a modified version of the parser, cache, html, and css code from mahtoid's DiscordChatExporterPy library.

License

This project follows the original library and is licensed under the GNU General Public License v3.0. Check the LICENSE for more information.

About

An extension library for interactions.py to create transcripts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages