Update bot.py

This commit is contained in:
Believethehype 2024-10-06 18:14:00 +02:00
parent 284fbe3716
commit 4ef805a79a

View File

@ -539,9 +539,10 @@ class Bot:
self.dvm_config)
etag = ""
for tag in zapped_event.tags():
if tag.as_vec()[0] == "e":
etag = tag.as_vec()[1]
if zapped_event is not None:
for tag in zapped_event.tags():
if tag.as_vec()[0] == "e":
etag = tag.as_vec()[1]
user = await get_or_add_user(self.dvm_config.DB, sender, client=self.client, config=self.dvm_config)