Skip to content

Pikalex04/AnarchyDumper.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnarchyDumper.py

AnarchyDumper.py is a program written in Python that dumps all the contents of one or more Discord text channels.

About

AnarchyDumper. Weird name for such a program, you may think. Well, perhaps it seems like that at first sight, however I think it's a very appropriate name.

Why? Well, it's simple.

AnarchyDumper does not dump everything from a channel, it does more.

Rather than just backing up every message sent and their content, authors, date of creation, it dumps EVERYTHING! From every asset or attachment sent to all the ID of each user, channel or role that was mentioned in one message.

Thanks to discord.py and its very comfortable support for the Discord API, AnarchyDumper takes everything from a channel and everything related to it and stores everything in cool and simple JSON files... And folders for attachments and assets. Each attachment and asset has its own ID set by the bot, so you can find out what message the attachment or asset was sent in!

Since it dumps everything you can also set up your own builder that re-builds the messages in another type of format, starting from simple .txt files to a recreation of an image for each message!

Isn't it a bit too powerful? Well, perhaps that's because it's coming from people who live in Anarchy to people who live in Anarchy.

Are there any cons? Well, yes. Since the AnarchyDumper dumps so many things, the size of each dump will be pretty... Fat.

By the way, it is not slow at all. It may look like it is because it dumps a lot of things, but it is pretty optimized so you should not run into any performance issue.

Why?

Ever had to delete a channel that was not used anymore or that was useless? Ever regretted deleting it because it had some good messages on it? Well, that is the reason of life of AnarchyDumper. Honestly, it has been a life saviour to me.

Usage

First of all you need a Discord account that will run AnarchyDumper. The program accesses to the channels you want to dump by logging into an account that can see these channels. And you need the token for that account. It works with both normal users and bots, however pay attention that injecting those kind of things into your own user account is against Discord's Terms of Service. As such, if you get caught using it... Well, most likely your account is going to be deleted. So pay attention if you're too lazy to use a bot!

If you are using the release, run AnarchyDumper.exe after you completed the installation you can find below.

Instead if you downloaded the source code, you need to install Python and discord.py before running the AnarchyDumper. The installation process then is pretty much the same.

Installation

First! Select the version you want from the last release.

You can't decide on what to choose? Let me help you right here then!

Faccili

This version makes very easy to build JSON files, however they will end up being pretty big. Choose it if you want to use a simple-to-edit builder!

Speed: ~107 messages per second; Size: ~1000 messages per MB

Piccioccu

This version makes instead very small sized JSON files, however it may be more difficult to build. Choose it if you aren't going to build a backup in another format!

Speed: ~115 messages per second; Size: ~1333 messages per MB

Last! Open settings.json like a common .txt file and follow these steps:

1. Select your token! In token: "" put the token of the user or bot you'll use AnarchyDumper in between the empty quotetion marks.

2. Decide your species! In bot: , put true if you are using AnarchyDumper in a bot, else put false if you are using AnarchyDumper in a user right after the colon.

3. Choice your targets! In channels: [], put the ID of all the channels you want to dump between the brackets separated by a comma and a space.

A bit confused? Here is an example of how your settings.json should look:

{"token": "Ex4mPl3 T0keN", "bot": true, "channels": [444433355555, 777777722, 9999999991]}

TODO

  • Serialize every type of object dumped to JSON.
  • Make the dumper not loop on itself on any object.
  • Complete it.
  • Clean it.
  • Add releases.
  • Maybe add a builder?

Contributing

I am free to receive Pull Requests. It would be very cool if AnarchyDumper gets better in the future.

From the Head-Champo, Pikalex

Yo, thanks for reading, very appreciated indeed :zoomedEyes:

SO, if you want to talk to me somewhere, I'd recommend to hit me up on Discord. My username is Pikalex04#8877.

License

MIT

About

Program written in Python that dumps all the contents of one or more Discord text channels.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages