Commit 36894e21 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

or not

parent 7c3f68af
......@@ -170,20 +170,20 @@ async def status_task():
with open('all.log', 'a') as f:
f.write(f"[{str(datetime.datetime.now()).split('.')[0]}] > {pprint.pformat(line)}\n")
myMessages.append((line, await ch.send(line)))
removed = False
if ") wants to play a " in line:
pName = line.split("**")[1]
for i in range(len(myMessages)-2,max(len(myMessages)-50,1),-1):
if pName in myMessages[i][0]:
if ") wants to play a " in myMessages[i][0]:
# s = f'~~{myMessages[i][0]}~~'
pprint.pprint(myMessages[i])
with open('all.log', 'a') as f:
f.write(f"[{str(datetime.datetime.now()).split('.')[0]}] x {pprint.pformat(myMessages[i][0])}\n")
await myMessages[i][1].delete()
myMessages.pop(i)
removed = True
break
# removed = False
# if ") wants to play a " in line:
# pName = line.split("**")[1]
# for i in range(len(myMessages)-2,max(len(myMessages)-50,1),-1):
# if pName in myMessages[i][0]:
# if ") wants to play a " in myMessages[i][0]:
# # s = f'~~{myMessages[i][0]}~~'
# pprint.pprint(myMessages[i])
# with open('all.log', 'a') as f:
# f.write(f"[{str(datetime.datetime.now()).split('.')[0]}] x {pprint.pformat(myMessages[i][0])}\n")
# await myMessages[i][1].delete()
# myMessages.pop(i)
# removed = True
# break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment