Giter VIP home page Giter VIP logo

emoji-thief's Introduction

Emoji Thief

Monitors the keyboard for Discord emoji URLs, and uses a bot to upload them to a private server.

Discord Nitro allows users to use custom emoji globally, across servers. But what do you do when you see someone else use their own emoji? Now you don't have to ask them for an invite! Simply right-click on the emoji, press "Copy Link", and Emoji Thief will do the rest!

Prerequisites

Linux:

# Arch Linux
yaourt -S yad

# Ubuntu
sudo apt-add-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install yad
# Arch Linux
pacman -S nodejs npm

# Ubuntu
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

Installation

Linux:

git clone https://github.com/ottomated/emoji-thief.git
cd emoji-thief
npm install

Config Setup

To actually use this script, you need to make:

  • A new Discord server for the emoji to be uploaded to
  • Optional: An extra channel in that server for the bot to write its logs to
  • A Discord Bot

Server creation and channel creation are relatively easy, so I'm not going to go over that. In the config.json file, enter the server and channel IDs in their respective fields.

To create the bot:

  1. go to https://discordapp.com/developers/applications/me
  2. "New App"
  3. Fill out the name as "Emoji Thief" (or whatever you'd like)
  4. Upload an image for the icon: I suggest this
  5. "Create App"
  6. Scroll down, "Create a Bot User"
  7. Click to reveal the token and copy it to the "token" field in config.json
  8. Scroll up, find your client ID
  9. Visit this URL, replacing the zeros with your real client ID: https://discordapp.com/api/oauth2/authorize?client_id=000000000000000000&permissions=8&scope=bot
  10. Add the bot to the server you created earlier.

Running the Script

Once you've filled out the config.json, navigate to the folder in your terminal and run npm start. Feel free to set this up as a startup script.

Meta

Website: ottomated.pw

Distributed under the ISC license. See LICENSE for more information.

https://github.com/ottomated/

Contributing

  1. Fork it (https://github.com/ottomated/emoji-thief/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

ToDo

  • Multi-Platform support
  • Better error handling
  • Scaling of multiple image types

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.