Even more defense - only matchy knows about the state.json path

This commit is contained in:
Marc Di Luzio 2024-08-13 23:45:18 +01:00
parent 57f65b265c
commit 9337b92f50
2 changed files with 3 additions and 6 deletions

View file

@ -9,7 +9,8 @@ from state import load_from_file
from cogs.matchy_cog import MatchyCog
from cogs.owner_cog import OwnerCog
state = load_from_file()
_STATE_FILE = "state.json"
state = load_from_file(_STATE_FILE)
logger = logging.getLogger("matchy")
logger.setLevel(logging.INFO)