Skip to content

TheNathanSpace/DiscordServerArchiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Server Archiver

This is a Discord bot that archives entire servers, storing every message in a SQLite database for easy querying.

Installation

  1. Create a Discord bot in the Developer portal: https://discord.com/developers/applications.

  2. Add the bot to your server using the generated OAUTH2 URL. Since I'm hosting it myself and using it on my server I'd just give it Administrator permissions. Otherwise, my best guess is that it needs to view and manage messages.

  3. Install Python: https://www.python.org/downloads/

  4. Clone the repo:

git clone https://github.com/TheNathanSpace/DiscordServerArchiver
cd DiscordServerArchiver
  1. Install the Python dependencies:
pip install requirements.txt
  1. Define your bot's secret key in the variable key in the module secrets:
key = "asdfasdgraha4535h5h3h5.25yhbas.5h23qaz6uaq35yraq3y35aq"
  1. Run the bot:
python bot.py

Commands

!update_archive archives every message in the server, storing them in an SQLite database.

!count_reactions queries the local database, counts how many times each user has used each reaction, and saves the results as a .json file.

About

Discord bot that archives all server messages, adding them to a SQLite database for easy querying.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages