mirror of
https://github.com/Xevion/unbelievaselfbot.git
synced 2025-12-07 07:16:51 -06:00
proper path constants, logging level constant, file & stream logging
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
# Path Constants
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(os.path.join(__file__, '..')))
|
||||
STATIC_DIR = os.path.join(BASE_DIR, 'bot', 'static')
|
||||
TOKEN = os.path.join(BASE_DIR, 'token.dat')
|
||||
DATABASE = os.path.join(BASE_DIR, 'database.db')
|
||||
|
||||
# Other constants
|
||||
LOGGING_LEVEL = logging.DEBUG
|
||||
|
||||
# NamedTuple Classes
|
||||
PlayOptions = namedtuple('PlayOptions', ['hit', 'stand', 'double', 'split'])
|
||||
|
||||
Reference in New Issue
Block a user