mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-27 22:46:24 +02:00
fix tutorials
This commit is contained in:
@@ -2,24 +2,14 @@
|
|||||||
# In tutorial 3 we have written a client that requests a response from the DVM and gets the reply back.
|
# In tutorial 3 we have written a client that requests a response from the DVM and gets the reply back.
|
||||||
# In this tutorial we build a simple bot that bridges the communication between the user and the Kind 5050
|
# In this tutorial we build a simple bot that bridges the communication between the user and the Kind 5050
|
||||||
# (Text generation) DVM.
|
# (Text generation) DVM.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import asyncio
|
|
||||||
import os
|
|
||||||
import threading
|
import threading
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
|
|
||||||
from nostr_dvm.bot import Bot
|
from nostr_dvm.bot import Bot
|
||||||
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
|
||||||
from nostr_sdk import Kind, Keys
|
|
||||||
from nostr_dvm.utils.admin_utils import AdminConfig
|
from nostr_dvm.utils.admin_utils import AdminConfig
|
||||||
from nostr_dvm.utils.dvmconfig import build_default_config, DVMConfig
|
from nostr_dvm.utils.dvmconfig import build_default_config
|
||||||
from nostr_dvm.utils.nip89_utils import NIP89Config
|
|
||||||
from nostr_dvm.utils.zap_utils import change_ln_address
|
|
||||||
|
|
||||||
|
|
||||||
def run_dvm(identifier):
|
def run_dvm(identifier):
|
||||||
|
|
||||||
|
@@ -10,8 +10,6 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
from sympy import false
|
|
||||||
|
|
||||||
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
||||||
from nostr_sdk import Kind, Keys
|
from nostr_sdk import Kind, Keys
|
||||||
from nostr_dvm.utils.admin_utils import AdminConfig
|
from nostr_dvm.utils.admin_utils import AdminConfig
|
||||||
|
@@ -8,8 +8,6 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
from sympy import false
|
|
||||||
|
|
||||||
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
||||||
from nostr_sdk import Kind, Keys
|
from nostr_sdk import Kind, Keys
|
||||||
from nostr_dvm.utils.admin_utils import AdminConfig
|
from nostr_dvm.utils.admin_utils import AdminConfig
|
||||||
|
@@ -7,8 +7,6 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
from sympy import false
|
|
||||||
|
|
||||||
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
||||||
from nostr_sdk import Kind, Keys
|
from nostr_sdk import Kind, Keys
|
||||||
from nostr_dvm.utils.admin_utils import AdminConfig
|
from nostr_dvm.utils.admin_utils import AdminConfig
|
||||||
|
@@ -14,8 +14,6 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
from sympy import false
|
|
||||||
|
|
||||||
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
from nostr_dvm.tasks.generic_dvm import GenericDVM
|
||||||
from nostr_sdk import Kind, Keys
|
from nostr_sdk import Kind, Keys
|
||||||
from nostr_dvm.utils.admin_utils import AdminConfig
|
from nostr_dvm.utils.admin_utils import AdminConfig
|
||||||
|
@@ -12,7 +12,6 @@ from nostr_sdk import PublicKey, Client, NostrSigner, EventBuilder, Kind, Tag, K
|
|||||||
Filter, Event
|
Filter, Event
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from nostr_dvm.utils.definitions import EventDefinitions
|
from nostr_dvm.utils.definitions import EventDefinitions
|
||||||
from nostr_dvm.utils.dvmconfig import DVMConfig
|
from nostr_dvm.utils.dvmconfig import DVMConfig
|
||||||
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key
|
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key
|
||||||
|
Reference in New Issue
Block a user