This commit is contained in:
pancakes 2024-02-22 13:56:58 +10:00
parent 886f541769
commit 129bfcf8dc

3
bot.py
View file

@ -149,7 +149,8 @@ post_content = [
"\n\n",
"Artist: " + post["tag_string_artist"] + "\n" if config.type == "danbooru" and len(post["tag_string_artist"]) > 0 else "",
"Score: " + str(post["score"]) + "\n",
"Source: " + post["source"] + "\n\n" if len(post["source"]) > 0 else "\n",
"Source: " + post["source"] + "\n\n" if len(post["source"]) > 0 else "",
"\n\n" + post["url"] if config.type == "danbooru" else ""
]
mastodon = Mastodon(access_token=f"auth/{argv[1]}.auth.secret")