Ever want to easily insert commonly used emojis that don't exist in Unicode
? Or animated emojis? Or stickers on chat platforms
that don't support them?
Well, emotes will do that for you (when we finish programming it). It will be an API so you can insert these emojis easily without having to tediously search for them. Just GET /thonk instead of searching Google (or Bing or your favourite search engine). Or upload your own emojis. Or emotes will fetch your emote for you from one of our supported providers.
Looking for the API documentation? You can find it here.
You can develop it in a Python venv. To get started, run these commands.
source venv/bin/activate
pip3 install -r requirements.txtYou also need a valid MySQL/MariaDB database, and a Redis server to develop emotes. Installing that
is out of the scope of this readme. In addition, you will need a valid Twitch client ID if you want to develop the Twitch integration.
Next, copy the .flaskenv.sample to .flaskenv.
cp .flaskenv.sample .flaskenvWith your flaskenv, fill in the variables with their appropriate values. You should also probably set FLASK_DEBUG to 1 if you are developing the application,
otherwise Flask will not reload every time you make a change in the files. Then, you can run the application with flask run.
Furthermore, you need to start up a celery worker or emote caching will be completely unfunctional. celery -A emotes.wsgi.celery -c 1 worker is the command for this.
The application "installer" should print out an admin API key that you can use later. You can now develop the program as normal.
It is fairly easy to install emotes because it has a Dockerfile. If you aren't using Docker, you will have to do these things manually, and that is not in the scope of this README for now.
Run docker build . -t <your tag here> with your tag. In my case it's for a private Docker registry, so I use my.domain.here/emotes:latest. You can then push it to your registry,
(with docker push <your tag here>) and run the image as you would any other Docker image. Make sure to set your environment variables accordingly if you're using Kubernetes or Docker-compose or the like.
Things emotes can do right now:
- Display local emotes from the
emotesdirectory - Display emotes from an external source like
Discordor Twitch - Display user-uploaded emotes
- Simple user interface to wrap over the API
- Deployment and publicly accessible instance
Created by Lord Steggy and cdknight.