mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 02:52:41 +02:00
Update upload_hoster.py
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
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
|
from nostr_dvm.utils.output_utils import upload_media_to_hoster
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -13,5 +15,9 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
raise FileNotFoundError(f'.env file not found at {env_path} ')
|
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))
|
|
Reference in New Issue
Block a user