fixes from moving to src
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
from os import path
|
||||||
|
|
||||||
EXTRA_EMOJI = {
|
EXTRA_EMOJI = {
|
||||||
"thumbup": "1f44d",
|
"thumbup": "1f44d",
|
||||||
@@ -67,7 +68,7 @@ regex = re.compile("(<a?:[\\w\\-\\~]+:\\d+>|:[\\w\\-\\~]+:)")
|
|||||||
def load_emojis():
|
def load_emojis():
|
||||||
global global_list, unicode_list, regex
|
global global_list, unicode_list, regex
|
||||||
emoji_list = []
|
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())
|
emoji_list = json.loads(f.readline().strip())
|
||||||
for emoji in EXTRA_EMOJI:
|
for emoji in EXTRA_EMOJI:
|
||||||
emoji_list += [{"short_name": emoji, "unified": EXTRA_EMOJI[emoji]}]
|
emoji_list += [{"short_name": emoji, "unified": EXTRA_EMOJI[emoji]}]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from miniscord import Bot
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import emojis
|
import emojis
|
||||||
from emotes import EmotesScanner
|
from emotes_scanner import EmotesScanner
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
format="[%(asctime)s][%(levelname)s][%(module)s] %(message)s", level=logging.INFO
|
format="[%(asctime)s][%(levelname)s][%(module)s] %(message)s", level=logging.INFO
|
||||||
Reference in New Issue
Block a user