dev #19

Merged
profitroll merged 98 commits from dev into master 2023-04-24 13:48:22 +03:00
2 changed files with 7 additions and 4 deletions
Showing only changes of commit be8f0262d0 - Show all commits

View File

@ -86,8 +86,10 @@
},
"caption": {
"enabled": false,
"text": "sample text",
"link": null
"link": null,
"text": [
"sample text"
]
},
"submission": {
"timeout": 30,

View File

@ -1,5 +1,6 @@
from datetime import datetime
from os import makedirs, path
from random import choice
from shutil import rmtree
from traceback import format_exc
from uuid import uuid4
@ -129,9 +130,9 @@ async def send_content(app: PosterClient) -> None:
if configGet("enabled", "caption"):
if configGet("link", "caption") != None:
caption = f"{caption}[{configGet('text', 'caption')}]({configGet('link', 'caption')})"
caption = f"{caption}[{choice(configGet('text', 'caption'))}]({configGet('link', 'caption')})"
else:
caption = f"{caption}{configGet('text', 'caption')}"
caption = f"{caption}{choice(configGet('text', 'caption'))}"
else:
caption = caption