A python tool for downloading the entirety of a chat log you have access to.
Requires Python 3.5+.
Install the discord.py library:
$ python3 -m pip install -U discord.py
Then clone the directory and make file executable:
$ git clone https://github.com/dhdavvie/DiscordChatDownloader.git
$ cd DiscordChatDownloader
$ chmod +x DiscordChatDownloader.py
Usage:
$ ./DiscordChatDownloader.py {bot_token} {channel_id} {output_file}
or
$ python3 DiscordChatDownloader.py {bot_token} {channel_id} {output_file}
This is intended to be used with a Bot Token! Here are instructions on getting a Bot Token.
You can get the channel_id
by following the steps here.
The output_file
is simply the name of the file you wish to output the chat log to (ie chatlog.txt
)