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
Release files for chat-exporter 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chat_exporter-1.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chat_exporter-1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / chat_exporter-1.tar.gz
| Download URL | chat_exporter-1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c46099983a65de92e75fb4e257bf05c3c2d7df5401f7ac9d0f488a607631b35a
|
|
BLAKE2b-256 checksum How to use checksums |
d25ecfa7f947649d75335cf34954bd846038c83c9f637bd792a4ae1e1f365893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / chat_exporter-1-py3-none-any.whl
| Download URL | chat_exporter-1-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29fb6a69c1af15bfdb2af08b45dd597f1d4735e76450eab7da1bd944886609f5
|
|
BLAKE2b-256 checksum How to use checksums |
996fa40dd6bc93bf67631402c46f6344020799c3bc614e4409b3ae4e4367281b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|