From c7a7c13a35834fced0cbf73340563bd66f7399f3 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 16 Jan 2025 20:32:41 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)