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

33 lines
727 B
Python
Raw Normal View History

2022-11-11 23:29:07 +00:00
import logging
2023-04-04 18:19:29 +00:00
import random
2023-04-13 17:45:51 +00:00
from pathlib import Path
from typing import List, Tuple, Set, Dict
2023-06-13 11:20:49 +00:00
from urllib.parse import ParseResult
2023-04-04 18:19:29 +00:00
from .path_manager import LOCATIONS
2023-09-10 14:27:09 +00:00
from .config import main_settings, logging_settings, youtube_settings
2023-04-18 11:00:00 +00:00
from .enums.album import AlbumType
2023-04-18 07:02:03 +00:00
2023-09-10 14:27:09 +00:00
DEBUG = True
if DEBUG:
print("DEBUG ACTIVE")
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
HELP_MESSAGE = """
to search:
> 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
have fun :3
""".strip()