diff --git a/sweebot.py b/sweebot.py index af16fae..6cd765a 100644 --- a/sweebot.py +++ b/sweebot.py @@ -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)