From d64c93a47c25b45c939a765860a819214838f8dd Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Wed, 10 Apr 2024 17:14:14 -0600 Subject: [PATCH] Mods --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 100ccd0..bd6d2a5 100644 --- a/main.py +++ b/main.py @@ -458,7 +458,7 @@ async def shitpost(ws, room_id): # Select a random post post = posts[random_int(0, len(posts) - 1)] - print(post) + number = post.get("no", "") html = post.get("com", "") if not html: @@ -483,6 +483,8 @@ async def shitpost(ws, room_id): if not text: text = url + else: + text = f"{text}\n{url}" await send_message(ws, text, room_id)