A enhanced Discord chat exporter for Python Discord bots based on mahtoid's chat_exporter.
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
Close
Hashes for enhanced_chat_exporter-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2151b027ab090c9b783a9118f28738f020a89fb5773455cd7e9e438145696566 |
|
MD5 | 41a4e23d36442d12a4d5eb1f5e94e80d |
|
BLAKE2b-256 | 421ff581ae41c57791646bfa2050a7e66e14aa60e99812e102c306016a1fa940 |