Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Repository files navigation

interactions-transcript

This project is a improved version of mahtoid's DiscordChatExporterPy library, ported to an extension of interactions.py, another Discord API wrapper, with extra features.

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

Installation

Install from PyPi

pip install interactions-transcript

Install from github

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

Build from source

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

Usage

Loading the extension

frominteractionsimportClientclient=Client(token="...")
client.load("interactions.ext.transcript")
client.start()

Using the extension

awaitChannel.get_transcript(limit=...)

Another way to use

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

Parameters of method get_transcript:

ParameterTypeDescriptionDefault Value
channelinteractions.ChannelThe 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 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.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages