From 8ff0064c93303db10af51b86a1f336b77aefbed3 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Fri, 9 Aug 2024 23:42:28 +0100 Subject: [PATCH] Make the config import optional --- matchy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matchy.py b/matchy.py index da6a58a..4947d2f 100755 --- a/matchy.py +++ b/matchy.py @@ -10,7 +10,8 @@ from discord.ext import commands # Config contains # TOKEN : str - Discord bot token # 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.setLevel(logging.INFO)