forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
4ac94fb1bf
commit
94120b0a69
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue