fix async issues, add logging, get database to be created on startup

This commit is contained in:
Xevion
2021-02-07 07:04:16 -06:00
parent 0dadb30680
commit 4527a3e427
3 changed files with 25 additions and 8 deletions

View File

@@ -1,4 +1,10 @@
import logging
import os
DATABASE = 'database.db'
# Path Constants
BASE_DIR = os.path.dirname(os.path.abspath(os.path.join(__file__, '..')))
TOKEN = os.path.join(BASE_DIR, 'token.dat')
DATABASE = os.path.join(BASE_DIR, 'database.db')
# Other constants
LOGGING_LEVEL = logging.DEBUG