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: