Skip to content

Makes and stores an archive of every message sent in a Discord text channel

Notifications You must be signed in to change notification settings

NorthernChicken/discord-archivebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

discord-archivebot

A Discord bot that makes and stores an archive of every message sent in a Discord text channel.

How to install

Requirements

Setup

Basic Python and Discord bot knowledge may be required for setup.

  1. Download this repo (big green button "code", download zip). Unzip the folder, open it, and open a terminal in that folder (right click+open terminal on Windows)
  2. Install Discord Python library: pip install discord.py
  3. Discord bot setup: go to the Discord Developer Portal, and create a new application. Click on "Bot," then "Bot permissions." Check "Administrator." Scroll up and reset token, then save it somewhere.
  4. Enter the Discord bot token at the bottom of the bot.py script.
  5. Invite the bot to your server in the Discord Developer portal - Go to your bot, click "installations," and check "Bot" and "Administrator." Copy the invite link to your browser and select the server you want to invite it to.
  6. Send the message "!archive" in the text channel you want to archive.
  7. The folder with the bot now has a subfolder called "message_archive" with the archived content.

Known Issues

  • Issues when saving multiple attachments with the same filename
  • Doesn't archive attachments with really long/invalid character filenames

DISCLAIMERS

  • This bot requires Administrator on your Discord server. This is a dangerous permission to give out. I am not doing anything malicious, but please check my code for yourself, don't take my word for it.
  • Do not use this bot for malicious purposes, and only archive a server with the server member's consent.

About

Makes and stores an archive of every message sent in a Discord text channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages