Update sweebot.py
Some checks failed
Check syntax / check (push) Has been cancelled

This commit is contained in:
Nova Cat 2025-01-16 20:32:41 -08:00
parent fd9f3eefc8
commit c7a7c13a35

View file

@ -889,16 +889,12 @@ while True:
break
else:
try:
print(i)
print(i.strip().split(" ")[0])
print(i.strip().split(" ")[0][0])
if i.strip().split(" ")[0][0] == "#" and len(i.strip().split(" ")) == 1:
if i.strip()[0] == "#" and i.strip()[1] == " ":
print("Found title: " + i)
title = True
multiline("(" + nick + f") " + i.strip()[2:].strip(), channel)
break
except:
print(traceback.format_exc())
pass
if not title and not redirected:
multiline("(" + nick + ") [No title found]", channel)