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")
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.tar.gz
(19.1 kB
view details)
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
chat_exporter-1-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file chat_exporter-1.tar.gz.
File metadata
- Download URL: chat_exporter-1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c46099983a65de92e75fb4e257bf05c3c2d7df5401f7ac9d0f488a607631b35a
|
|
| MD5 |
2b59f46386347981654170ba9c4a271f
|
|
| BLAKE2b-256 |
d25ecfa7f947649d75335cf34954bd846038c83c9f637bd792a4ae1e1f365893
|
File details
Details for the file chat_exporter-1-py3-none-any.whl.
File metadata
- Download URL: chat_exporter-1-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29fb6a69c1af15bfdb2af08b45dd597f1d4735e76450eab7da1bd944886609f5
|
|
| MD5 |
d3679d79b2abe11598f0bbe6f1970808
|
|
| BLAKE2b-256 |
996fa40dd6bc93bf67631402c46f6344020799c3bc614e4409b3ae4e4367281b
|