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)
chat_exporter.init_exporter(bot)
@bot.command()
async def save(ctx):
await chat_exporter.export(ctx)
if __name__ == "__main__":
bot.run("BOT_TOKEN_HERE")
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.1.6.7.tar.gz
(27.4 kB
view hashes)
Built Distribution
Close
Hashes for chat_exporter-1.1.6.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e07d11b7e752c011f09190c98959761a407b565611e616236d5b2f9c58c7d7 |
|
MD5 | 25288ca0b935946b6bfcb2468cf78572 |
|
BLAKE2b-256 | 19a1f287c619509bc59a4e5abd8f67958142f9b1bf9c283a477ba96b01f9322c |