import asyncio
from pathlib import Path

import dotenv

from nostr_dvm.utils.output_utils import upload_media_to_hoster

if __name__ == '__main__':
    env_path = Path('.env')
    if env_path.is_file():
        print(f'loading environment from {env_path.resolve()}')
        dotenv.load_dotenv(env_path, verbose=True, override=True)
    else:
        raise FileNotFoundError(f'.env file not found at {env_path} ')


    asyncio.run(upload_media_to_hoster("tests/output.wav", "key", True))