From 6a2ff601c3a40bcd8834054a8938fe18b82bb661 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 8 Jan 2025 14:19:16 -0800 Subject: [PATCH] Update sweebridge.py --- sweebridge.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sweebridge.py b/sweebridge.py index d297a9b..8bf3470 100644 --- a/sweebridge.py +++ b/sweebridge.py @@ -79,6 +79,11 @@ def parse_content(text:str, platform:int, target:str): # Text for use in Guilded, # Text for use in [UNUSED] # ] + # platform = + # 1 - IRC + # 2 - Discord + # 3 - Guilded + # platform will be the value of the incoming platform, not any outgoing ones. e = [text] if platform == 1 and "discord" in config[target]: # Parse IRC -> Discord members = {} @@ -106,7 +111,7 @@ def parse_content(text:str, platform:int, target:str): e.append("".join(temp)) else: e.append(text) - if platform == 2 and "guilded" in config[target]: # Parse IRC -> Guilded: + if platform != 3 and "guilded" in config[target]: # Parse IRC -> Guilded: # Links workaround for Guilded temp = "" parsed = text.split(" ")