Update sweebot.py
Some checks are pending
Check syntax / check (push) Waiting to run

This commit is contained in:
Nova Cat 2025-01-16 20:28:38 -08:00
parent 2861afbb33
commit 572746b6f7

View file

@ -890,10 +890,10 @@ while True:
else: else:
try: try:
print(i) print(i)
if i.split(" ")[0][0] == "#" and len(i.split(" ")) == 1: if i.strip().split(" ")[0][0] == "#" and len(i.strip().split(" ")) == 1:
print("Found title: " + i) print("Found title: " + i)
title = True title = True
multiline("(" + nick + f") " + i[2:], channel) multiline("(" + nick + f") " + i.strip()[2:].strip(), channel)
break break
except: except:
print(traceback.format_exc()) print(traceback.format_exc())