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.4.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for chat_exporter-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6d4a47cbe845c6ba7a6d54f8df58b24c330f2ab324f3fa5644e639c13b7f41 |
|
MD5 | e60cc54e4430f97271445947da97ac46 |
|
BLAKE2b-256 | 0d00777f796ce95f1cd1857fba9a43e28326ace6c6b7b7a547541a06bb7d78dd |