diff --git a/sweebridge.py b/sweebridge.py index 050aa1e..f227ee1 100644 --- a/sweebridge.py +++ b/sweebridge.py @@ -68,7 +68,7 @@ libera.connect_irc( ) userlist = {} def hook(url:str, json:dict): - threading.Thread(target=requests.post, kwargs={"url": url, "json": json}).start() + return requests.post(url=url, json=json) def parse_content(text:str, platform:int, target:str): # e = [ # Text for use in IRC,