From 94120b0a69c51a853b6bd92402a6d98c2f4a4b93 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 22 Dec 2024 19:26:26 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sweebot.py b/sweebot.py index b625f81..04343ba 100644 --- a/sweebot.py +++ b/sweebot.py @@ -622,13 +622,15 @@ while True: if i.lower() == "g": repeat = True elif int(i.strip()).isdigit(): + print(f"index = {int(i)}") index = int(i) else: + print(f"user = {i.lower()}") user = i.lower() except: pass cache = None 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 break if cache == None: