From 9878d637fa91f1c0c0fd9b1e6ad06929314779d3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Apr 2022 22:13:08 +0100 Subject: [PATCH] Remove file ending --- content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.py b/content.py index 93c556811..2fcd0318b 100644 --- a/content.py +++ b/content.py @@ -325,6 +325,8 @@ def _save_custom_emoji(session, base_dir: str, emojiName: str, url: str, def _update_common_emoji(base_dir: str, emoji_content: str) -> None: """Updates the list of commonly used emoji """ + if '.' in emoji_content: + emoji_content = emoji_content.split('.')[0] emoji_content = emoji_content.replace(':', '') common_emoji_filename = base_dir + '/accounts/common_emoji.txt' common_emoji = None