fixes from moving to src

This commit is contained in:
klemek
2021-01-08 12:43:55 +01:00
parent 6d3d1118f1
commit 038b1a294c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import re
import json
import logging
from os import path
EXTRA_EMOJI = {
"thumbup": "1f44d",
@@ -67,7 +68,7 @@ regex = re.compile("(<a?:[\\w\\-\\~]+:\\d+>|:[\\w\\-\\~]+:)")
def load_emojis():
global global_list, unicode_list, regex
emoji_list = []
with open("emoji.json", mode="r") as f:
with open(path.join(path.dirname(__file__), "emoji.json"), mode="r") as f:
emoji_list = json.loads(f.readline().strip())
for emoji in EXTRA_EMOJI:
emoji_list += [{"short_name": emoji, "unified": EXTRA_EMOJI[emoji]}]
+1 -1
View File
@@ -2,7 +2,7 @@ from miniscord import Bot
import logging
import emojis
from emotes import EmotesScanner
from emotes_scanner import EmotesScanner
logging.basicConfig(
format="[%(asctime)s][%(levelname)s][%(module)s] %(message)s", level=logging.INFO