running bot with database, switch to helper function for testing

This commit is contained in:
Xevion
2021-02-13 08:29:35 -06:00
parent ca10389aea
commit ee41885e89
2 changed files with 11 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import os
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')
DATABASE_URI = f'sqlite:///{DATABASE}'
# Other constants
LOGGING_LEVEL = logging.DEBUG