fix tutorials

This commit is contained in:
Believethehype
2024-11-27 22:30:32 +01:00
parent 1025df9f21
commit 2d48fd44b9
6 changed files with 1 additions and 20 deletions

View File

@@ -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 this tutorial we build a simple bot that bridges the communication between the user and the Kind 5050
# (Text generation) DVM.
import asyncio
import os
import threading
from pathlib import Path
import dotenv
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.dvmconfig import build_default_config, DVMConfig
from nostr_dvm.utils.nip89_utils import NIP89Config
from nostr_dvm.utils.zap_utils import change_ln_address
from nostr_dvm.utils.dvmconfig import build_default_config
def run_dvm(identifier):

View File

@@ -10,8 +10,6 @@ import os
from pathlib import Path
import dotenv
from sympy import false
from nostr_dvm.tasks.generic_dvm import GenericDVM
from nostr_sdk import Kind, Keys
from nostr_dvm.utils.admin_utils import AdminConfig

View File

@@ -8,8 +8,6 @@ import os
from pathlib import Path
import dotenv
from sympy import false
from nostr_dvm.tasks.generic_dvm import GenericDVM
from nostr_sdk import Kind, Keys
from nostr_dvm.utils.admin_utils import AdminConfig

View File

@@ -7,8 +7,6 @@ import os
from pathlib import Path
import dotenv
from sympy import false
from nostr_dvm.tasks.generic_dvm import GenericDVM
from nostr_sdk import Kind, Keys
from nostr_dvm.utils.admin_utils import AdminConfig

View File

@@ -14,8 +14,6 @@ import os
from pathlib import Path
import dotenv
from sympy import false
from nostr_dvm.tasks.generic_dvm import GenericDVM
from nostr_sdk import Kind, Keys
from nostr_dvm.utils.admin_utils import AdminConfig

View File

@@ -12,7 +12,6 @@ from nostr_sdk import PublicKey, Client, NostrSigner, EventBuilder, Kind, Tag, K
Filter, Event
import asyncio
from nostr_dvm.utils.definitions import EventDefinitions
from nostr_dvm.utils.dvmconfig import DVMConfig
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key