Update sweebridge.py
This commit is contained in:
parent
9127794c02
commit
5d9aa4b25e
1 changed files with 11 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue