allow external dvms to be added to the bot

This commit is contained in:
Believethehype
2023-11-29 15:09:35 +01:00
parent d6a6c4dcbb
commit 42b3d763f1
14 changed files with 178 additions and 111 deletions

View File

@@ -78,7 +78,7 @@ def check_and_decrypt_tags(event, dvm_config):
if is_encrypted:
if p != dvm_config.PUBLIC_KEY:
print("[" + dvm_config.NIP89.name + "] Task encrypted and not addressed to this DVM, "
print("[" + dvm_config.NIP89.NAME + "] Task encrypted and not addressed to this DVM, "
"skipping..")
return None
@@ -111,7 +111,7 @@ def check_and_decrypt_own_tags(event, dvm_config):
if is_encrypted:
if dvm_config.PUBLIC_KEY != event.pubkey().to_hex():
print("[" + dvm_config.NIP89.name + "] Task encrypted and not addressed to this DVM, "
print("[" + dvm_config.NIP89.NAME + "] Task encrypted and not addressed to this DVM, "
"skipping..")
return None