Update sweebot.py
Some checks failed
Check syntax / check (push) Failing after 9s

This commit is contained in:
Nova Cat 2024-12-22 19:26:26 -08:00
parent 4ac94fb1bf
commit 94120b0a69

View file

@ -622,13 +622,15 @@ while True:
if i.lower() == "g": if i.lower() == "g":
repeat = True repeat = True
elif int(i.strip()).isdigit(): elif int(i.strip()).isdigit():
print(f"index = {int(i)}")
index = int(i) index = int(i)
else: else:
print(f"user = {i.lower()}")
user = i.lower() user = i.lower()
except: pass except: pass
cache = None cache = None
for i in logs[channel]: for i in logs[channel]:
if find in i["content"] and (user == None or i["nick"] == user): if find in i["content"] and (user == None or i["nick"].lower)() == user):
cache = i cache = i
break break
if cache == None: if cache == None: