Mods
This commit is contained in:
parent
ba17a48c00
commit
d64c93a47c
4
main.py
4
main.py
|
@ -458,7 +458,7 @@ async def shitpost(ws, room_id):
|
||||||
|
|
||||||
# Select a random post
|
# Select a random post
|
||||||
post = posts[random_int(0, len(posts) - 1)]
|
post = posts[random_int(0, len(posts) - 1)]
|
||||||
print(post)
|
number = post.get("no", "")
|
||||||
html = post.get("com", "")
|
html = post.get("com", "")
|
||||||
|
|
||||||
if not html:
|
if not html:
|
||||||
|
@ -483,6 +483,8 @@ async def shitpost(ws, room_id):
|
||||||
|
|
||||||
if not text:
|
if not text:
|
||||||
text = url
|
text = url
|
||||||
|
else:
|
||||||
|
text = f"{text}\n{url}"
|
||||||
|
|
||||||
await send_message(ws, text, room_id)
|
await send_message(ws, text, room_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue