Git Product home page Git Product logo

discord-emoji-extractor's Introduction

discord-emoji-extractor

time tracker CodeFactor

Download all the emojis you've ever sent inside messages on Discord. Supports skipping duplicates and resuming downloads. image

Usage

These instructions are for building to Go project. The bash equivalent does not need compiling.

git clone [email protected]:5HT2/discord-emoji-extractor.git
cd discord-emoji-extractor
make
./extract -h # Run the program with help arguments

Running the Go version

  1. Download your Discord data backup. You can get this by going to Discord Settings > Privacy & safety > Request all of my data
  2. Extract the data somewhere. Doesn't matter.
  3. Follow the above usage instructions and run the program from anywhere.
  4. Follow the interactive instructions. You can use the -dir $DIR -dirconfirm args with DIR set to a path to skip the prompts.
  5. At any point you may cancel downloading and re-run the program, and it will resume downloading.

Running the Bash version

  1. Download your Discord data backup. You can get this by going to Discord Settings > Privacy & safety > Request all of my data
  2. Extract the data somewhere. Doesn't matter.
  3. cd my_data/messages/
  4. Download extract.sh to the messages directory.
wget https://github.com/5HT2/discord-emoji-extractor/raw/master/extract.sh
  1. Make the script executable.
chmod +x extract.sh
  1. Run the extract.sh script. The bash script does not support pausing and resuming downloads.

How it works

I basically just wanted a way to grab old emojis from servers that I'd left, with a picture preview, so the gist of the script is just reading each messages.csv, grepping for emojis and parsing the required info from each message (list of emojis, each emoji's name, ID, and type, etc).

The Go version works similarly, but is much faster and supports cancelling and resuming downloading.

Contributing and Improvements

Feature-wise, maybe you could parse the events file to get emojis which you've also used as reactions?

A bot to dynamically upload to a bunch of selected servers (as per the default 50 emoji / server limit) and skip ones with the same name, would be neat. Bots have a stricted upload ratelimit than users, so letting it run in the background to wait out the timeout would be ideal.

Possible command syntax could be

./extract -dir $DIR -dirconfirm -upload -token $TOKEN -serverids 96230004047740928,785362280601616406,343525052332900352

discord-emoji-extractor's People

Contributors

5ht2 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cleover

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.