music-kraken-core/music_kraken/utils/shared.py

35 lines
734 B
Python
Raw Normal View History

2023-04-04 18:19:29 +00:00
import random
from .path_manager import LOCATIONS
2023-09-11 19:34:45 +00:00
from .config import main_settings
2023-04-18 07:02:03 +00:00
2024-01-16 12:55:24 +00:00
DEBUG = True
DEBUG_LOGGING = DEBUG and True
2024-01-22 20:39:39 +00:00
DEBUG_YOUTUBE_INITIALIZING = DEBUG and False
2023-09-13 14:01:01 +00:00
DEBUG_PAGES = DEBUG and False
2023-09-12 08:58:44 +00:00
2023-09-10 14:27:09 +00:00
if DEBUG:
print("DEBUG ACTIVE")
2023-04-04 18:19:29 +00:00
2024-01-16 12:55:24 +00:00
2023-04-04 18:19:29 +00:00
def get_random_message() -> str:
2023-09-10 14:27:09 +00:00
return random.choice(main_settings['happy_messages'])
2023-04-04 19:10:47 +00:00
2023-06-20 14:40:34 +00:00
CONFIG_DIRECTORY = LOCATIONS.CONFIG_DIRECTORY
2024-01-16 12:55:24 +00:00
HIGHEST_ID = 2 ** main_settings['id_bits']
2023-09-11 19:34:45 +00:00
2023-09-12 11:56:40 +00:00
HELP_MESSAGE = """to search:
2023-06-20 14:40:34 +00:00
> s: {query or url}
> s: https://musify.club/release/some-random-release-183028492
> s: #a {artist} #r {release} #t {track}
to download:
> d: {option ids or direct url}
> d: 0, 3, 4
> d: 1
> d: https://musify.club/release/some-random-release-183028492
2023-09-12 11:56:40 +00:00
have fun :3""".strip()