# Discord Chat Exporter
Ein einfaches Python-Package zum Exportieren von Discord-Chats als HTML-Dateien.
## Installation
```bash
pip install dc-chat-exporter
```
## Verwendung
### Mit discord.py
```python
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
```python
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
```python
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
Raw data
{
"_id": null,
"home_page": null,
"name": "dc-chat-exporter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "discord, bot, chat-exporter, chat",
"author": "miguel_meier",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/81/d4/d9b44f3138a0d3afd70cef16d5f96dd7306496cf86e329314ce76dbcd79f/dc_chat_exporter-0.1.0.tar.gz",
"platform": null,
"description": "# Discord Chat Exporter\r\n\r\nEin einfaches Python-Package zum Exportieren von Discord-Chats als HTML-Dateien.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install dc-chat-exporter\r\n```\r\n\r\n## Verwendung\r\n\r\n### Mit discord.py\r\n\r\n```python\r\nimport discord\r\nfrom dc_chat_exporter import export_chat\r\n\r\nclient = discord.Client(intents=discord.Intents.default())\r\n\r\n@client.event\r\nasync def on_ready():\r\n channel = client.get_channel(CHANNEL_ID)\r\n await export_chat(channel, limit=100)\r\n print(\"Chat exportiert!\")\r\n\r\nclient.run('YOUR_TOKEN')\r\n```\r\n\r\n### Mit py-cord\r\n\r\n```python\r\nimport discord\r\nfrom dc_chat_exporter import export_chat\r\n\r\nbot = discord.Bot()\r\n\r\n@bot.slash_command(name=\"export\", description=\"Exportiert den aktuellen Chat\")\r\nasync def export_command(ctx):\r\n await ctx.defer()\r\n file_path = await export_chat(ctx.channel, limit=100)\r\n await ctx.respond(f\"Chat wurde exportiert: {file_path}\")\r\n\r\nbot.run('YOUR_TOKEN')\r\n```\r\n\r\n## Beispiel mit Custom-Dateinamen\r\n\r\n```python\r\nawait export_chat(channel, limit=200, output_file=\"mein_chat_export.html\")\r\n```\r\n\r\n## Features\r\n\r\n- \u2705 Discord Dark Theme Design\r\n- \u2705 Zeigt Avatare, Benutzernamen und Timestamps\r\n- \u2705 Unterst\u00fctzt Bilder und Anh\u00e4nge\r\n- \u2705 Unterst\u00fctzt Embeds\r\n- \u2705 Zeigt Rollenfarben\r\n- \u2705 Nur-Lese-Ansicht (kein Schreiben m\u00f6glich)\r\n\r\n## Lizenz\r\n\r\nMIT License - siehe LICENSE Datei\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Export Discord chats to beautiful HTML files",
"version": "0.1.0",
"project_urls": {
"GitHub": "https://github.com/miguelmeier/discord-chat-exporter-python"
},
"split_keywords": [
"discord",
" bot",
" chat-exporter",
" chat"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3ce1791934676a2f82b5efd0bc5f2b66a47434f97bbc35c1b10033e59b186457",
"md5": "a279fb4bd94cea9e1615b8ee05a3094d",
"sha256": "eb8d92389372ac9e1e0da21fa180272c091d938db185cb1b0deb084d268db477"
},
"downloads": -1,
"filename": "dc_chat_exporter-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a279fb4bd94cea9e1615b8ee05a3094d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5364,
"upload_time": "2025-10-22T22:58:14",
"upload_time_iso_8601": "2025-10-22T22:58:14.039203Z",
"url": "https://files.pythonhosted.org/packages/3c/e1/791934676a2f82b5efd0bc5f2b66a47434f97bbc35c1b10033e59b186457/dc_chat_exporter-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "81d4d9b44f3138a0d3afd70cef16d5f96dd7306496cf86e329314ce76dbcd79f",
"md5": "146da7c01c6dd95b6d74781735c1601f",
"sha256": "6a86fd1abcc40a69269e93de086f34f9142bc8892511e586a526b35eed032e72"
},
"downloads": -1,
"filename": "dc_chat_exporter-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "146da7c01c6dd95b6d74781735c1601f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5096,
"upload_time": "2025-10-22T22:58:14",
"upload_time_iso_8601": "2025-10-22T22:58:14.897476Z",
"url": "https://files.pythonhosted.org/packages/81/d4/d9b44f3138a0d3afd70cef16d5f96dd7306496cf86e329314ce76dbcd79f/dc_chat_exporter-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-22 22:58:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "miguelmeier",
"github_project": "discord-chat-exporter-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "dc-chat-exporter"
}