From 44307b2f9f8d85cdaf4414cc1b67b90abb0aac46 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Apr 2022 10:50:55 +0100 Subject: [PATCH] Document importing emoji --- README_customizations.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README_customizations.md b/README_customizations.md index a6f86ad7d..f18e94235 100644 --- a/README_customizations.md +++ b/README_customizations.md @@ -26,6 +26,20 @@ When a moderator report is created the message at the top of the screen can be c Extra emoji can be added to the *emoji* directory and you should then update the **emoji/emoji.json** file, which maps the name to the filename (without the .png extension). +Another way to import emoji is to create a text file where each line is the url of the emoji png file and the emoji name, separated by a comma. + +```bash +https://somesite/emoji1.png, :emojiname1: +https://somesite/emoji2.png, :emojiname2: +https://somesite/emoji3.png, :emojiname3: +``` + +Then this can be imported with: + +```bash +python3 epicyon.py --import-emoji [textfile] +``` + ## Themes If you want to create a new theme then the functions for that are within *theme.py*. These functions take the CSS templates and modify them. You will need to edit *themesDropdown* within *webinterface.py* and add the appropriate translations for the theme name. Themes are selectable from the profile screen of the administrator.