From 572746b6f7040a6c83aaf4e3cfdde8819ab6a4e7 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 16 Jan 2025 20:28:38 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index 8fe30f1..638cbed 100644 --- a/sweebot.py +++ b/sweebot.py @@ -890,10 +890,10 @@ while True: else: try: 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) title = True - multiline("(" + nick + f") " + i[2:], channel) + multiline("(" + nick + f") " + i.strip()[2:].strip(), channel) break except: print(traceback.format_exc())