Export Discord chats to beautiful HTML files
Project description
Discord Chat Exporter
Ein einfaches Python-Package zum Exportieren von Discord-Chats als HTML-Dateien.
Installation
pip install dc-chat-exporter
Verwendung
Mit discord.py
import discord
from dc_chat_exporter import export_chat
client = discord.Client(intents=discord.Intents.default())
@client.event
async def on_ready():
channel = client.get_channel(CHANNEL_ID)
await export_chat(channel, limit=100)
print("Chat exportiert!")
client.run('YOUR_TOKEN')
Mit py-cord
import discord
from dc_chat_exporter import export_chat
bot = discord.Bot()
@bot.slash_command(name="export", description="Exportiert den aktuellen Chat")
async def export_command(ctx):
await ctx.defer()
file_path = await export_chat(ctx.channel, limit=100)
await ctx.respond(f"Chat wurde exportiert: {file_path}")
bot.run('YOUR_TOKEN')
Beispiel mit Custom-Dateinamen
await export_chat(channel, limit=200, output_file="mein_chat_export.html")
Features
- ✅ Discord Dark Theme Design
- ✅ Zeigt Avatare, Benutzernamen und Timestamps
- ✅ Unterstützt Bilder und Anhänge
- ✅ Unterstützt Embeds
- ✅ Zeigt Rollenfarben
- ✅ Nur-Lese-Ansicht (kein Schreiben möglich)
Lizenz
MIT License - siehe LICENSE Datei
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dc_chat_exporter-0.1.0.tar.gz.
File metadata
- Download URL: dc_chat_exporter-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a86fd1abcc40a69269e93de086f34f9142bc8892511e586a526b35eed032e72
|
|
| MD5 |
146da7c01c6dd95b6d74781735c1601f
|
|
| BLAKE2b-256 |
81d4d9b44f3138a0d3afd70cef16d5f96dd7306496cf86e329314ce76dbcd79f
|
File details
Details for the file dc_chat_exporter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dc_chat_exporter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb8d92389372ac9e1e0da21fa180272c091d938db185cb1b0deb084d268db477
|
|
| MD5 |
a279fb4bd94cea9e1615b8ee05a3094d
|
|
| BLAKE2b-256 |
3ce1791934676a2f82b5efd0bc5f2b66a47434f97bbc35c1b10033e59b186457
|