fixes from moving to src
This commit is contained in:
+2
-1
@@ -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]}]
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user