Make the config import optional

This commit is contained in:
Marc Di Luzio 2024-08-09 23:42:28 +01:00
parent 95cb8bc868
commit 8ff0064c93

View file

@ -10,7 +10,8 @@ from discord.ext import commands
# Config contains # Config contains
# TOKEN : str - Discord bot token # TOKEN : str - Discord bot token
# OWNERS : list[int] - ids of owners able to use the owner commands # OWNERS : list[int] - ids of owners able to use the owner commands
import config if importlib.util.find_spec("config"):
import config
logger = logging.getLogger("matchy") logger = logging.getLogger("matchy")
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)