bragi/variables.py
Terry Geng 40ea744e7f
refactor: move music db into a separated file.
IMPORTANT NOTE:
The default database path has changed. It was database.db, but
now they ARE settings.db and music.db.

Database migration will detect music table in settings.db, and
move it out of settings.db.

To update from old version, you need to
 1. if you use your own db path settings in the command
    line or in configuration.ini, you don't have to change
    anything;
 1. or,if you use default database path, rename database.db
    into settings.db.
2020-05-13 10:43:40 +08:00

26 lines
503 B
Python

from typing import Type, TYPE_CHECKING
if TYPE_CHECKING:
import mumbleBot
import media.playlist
import media.cache
import database
bot: 'mumbleBot.MumbleBot' = None
playlist: Type['media.playlist.BasePlaylist'] = None
cache: 'media.cache.MusicCache' = None
user = ""
is_proxified = False
settings_db_path = None
music_db_path = None
db = None
music_db: 'database.MusicDatabase' = None
config: 'database.SettingsDatabase' = None
bot_logger = None
music_folder = ""
tmp_folder = ""