mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-11 00:52:42 +02:00
setting default zaps to private
This commit is contained in:
2
bot.py
2
bot.py
@@ -238,7 +238,7 @@ class Bot:
|
|||||||
user = get_or_add_user(db=self.dvm_config.DB, npub=nostr_event.pubkey().to_hex(),
|
user = get_or_add_user(db=self.dvm_config.DB, npub=nostr_event.pubkey().to_hex(),
|
||||||
client=self.client, config=self.dvm_config)
|
client=self.client, config=self.dvm_config)
|
||||||
print("PAYING: " + user.name)
|
print("PAYING: " + user.name)
|
||||||
bolt11 = zap(user.lud16, amount, "Zap", nostr_event, self.keys, self.dvm_config, "public")
|
bolt11 = zap(user.lud16, amount, "Zap", nostr_event, self.keys, self.dvm_config, "private")
|
||||||
if bolt11 == None:
|
if bolt11 == None:
|
||||||
print("Receiver has no Lightning address")
|
print("Receiver has no Lightning address")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user