mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 13:21:48 +01:00
Update upload_hoster.py
This commit is contained in:
parent
2033a1f721
commit
a29d4d8098
@ -1,8 +1,10 @@
|
||||
import asyncio
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import dotenv
|
||||
|
||||
from nostr_sdk import Keys
|
||||
from nostr_dvm.utils.blossom_utils import upload_blossom
|
||||
from nostr_dvm.utils.output_utils import upload_media_to_hoster
|
||||
|
||||
if __name__ == '__main__':
|
||||
@ -13,5 +15,9 @@ if __name__ == '__main__':
|
||||
else:
|
||||
raise FileNotFoundError(f'.env file not found at {env_path} ')
|
||||
|
||||
pkey = os.getenv("DVM_PRIVATE_KEY_BOT")
|
||||
|
||||
|
||||
#asyncio.run(upload_media_to_hoster("tests/image.png", pkey, True))
|
||||
asyncio.run(upload_blossom("tests/cat4.png", pkey, "https://blossom.primal.net"))
|
||||
|
||||
asyncio.run(upload_media_to_hoster("tests/output.wav", "key", True))
|
Loading…
x
Reference in New Issue
Block a user