A simple Discord chat exporter for Python Discord bots.
Project description
DiscordChatExporterPy is a Python plugin for your discord.py bot, allowing you to export a discord channels history within a guild.
Installing
To install the library to your bot, run the command:
pip install chat-exporter
To install the repository, run the command:
git clone https://github.com/mahtoid/DiscordChatExporterPy
Usage
import discord
import chat_exporter
from discord.ext import commands
bot = commands.Bot(command_prefix="!")
@bot.event
async def on_ready():
print("Live: " + bot.user.name)
@bot.command()
async def save(ctx):
await chat_exporter.export(ctx)
if __name__ == "__main__":
bot.run("BOT_TOKEN_HERE")
Optional: If you want the transcript to display Members (Role) Colours then enable the Members Intent.
Screenshots
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chat_exporter-1.2.tar.gz
(28.2 kB
view hashes)
Built Distribution
Close
Hashes for chat_exporter-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5e060655d2db24d3f373e175f0cfb379efff80bfde99dc65c98bdf3a80ab69 |
|
MD5 | 510ceac66782e8c5dae69ff2dba5f76b |
|
BLAKE2b-256 | 3a5a41fd9359029197f1b1ce036bd37ee80b094710dca28ba7267e6417c19e29 |