Update sweebridge.py

This commit is contained in:
Nova Cat 2025-01-08 14:15:41 -08:00
parent 9127794c02
commit 5d9aa4b25e

View file

@ -106,7 +106,17 @@ def parse_content(text:str, platform:int, target:str):
e.append("".join(temp))
else:
e.append(text)
e.append(text)
if platform == 2 and "guilded" in config[target]: # Parse IRC -> Guilded:
# Links workaround for Guilded
temp = ""
parsed = text.split(" ")
for index, i in parsed.enumerate():
if "http://" in i or "https://" in i:
parsed[index] = f"[{i}]({i})"
temp = " ".join(parsed)
e.append(temp)
else:
e.append(text)
e.append(text)
return e
def ircsession(platform:str, sock:bot_irc):