mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-27 20:26:16 +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 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):
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user