tumblrbot 1.9.1__py3-none-any.whl → 1.9.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,6 +35,8 @@ class DraftGenerator(FlowClass):
35
35
  def generate_post(self) -> Post:
36
36
  if original := self.get_random_post():
37
37
  user_message = self.config.reblog_user_message.format(original)
38
+ if "{}" not in self.config.reblog_user_message:
39
+ user_message += str(original)
38
40
  else:
39
41
  original = Post()
40
42
  user_message = self.config.user_message
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tumblrbot
3
- Version: 1.9.1
3
+ Version: 1.9.2
4
4
  Summary: An updated bot that posts to Tumblr, based on your very own blog!
5
5
  Requires-Python: >= 3.13
6
6
  Description-Content-Type: text/markdown
@@ -174,7 +174,7 @@ Specific Options:
174
174
  - **`tags_chance`** - This should be between 0 and 1. Setting it to 0 corresponds to a 0% chance (never) to add tags to a post. 1 corresponds to a 100% chance (always) to add tags to a post. Adding tags incurs a very small token cost.
175
175
  - **`reblog_blog_identifiers`** - Whenever a reblog is attempted, a random blog from this list will be chosen to be reblogged from.
176
176
  - **`reblog_chance`** - This setting works the same way as `tags_chance`.
177
- - **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content.
177
+ - **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content. Alternatively, you can leave out the `{}` so that the reblogged post is appended to the end.
178
178
  - *Note: The bot is only given the latest message in a reblog chain due to the required complexity and added costs of including the entire chain.*
179
179
 
180
180
  ## Manual Fine-Tuning
@@ -4,12 +4,12 @@ tumblrbot/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tumblrbot/flow/download.py,sha256=PUs7eM-1kGOb2RKijy3lW0zyvfFDwbxzTGhVghrWIhc,2012
5
5
  tumblrbot/flow/examples.py,sha256=MLj51kEZ3AWvP47V4mR9UKUUciKoNQJEvXhr5jxSgfs,4080
6
6
  tumblrbot/flow/fine_tune.py,sha256=YDukEwZNw3GveEAH4ORv6oylka5MQNLK_4iSmuAVPtg,5387
7
- tumblrbot/flow/generate.py,sha256=YceGpO8NZ-INN9lylnTdTMYF4ebmAyO0Uyam5XOWS48,4217
7
+ tumblrbot/flow/generate.py,sha256=43hVeUrsWoKnekQQEVrOUjn0JkxP6LEZxMRE_WxRWFM,4325
8
8
  tumblrbot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  tumblrbot/utils/common.py,sha256=RvICPORtBSqsN7VWADgStogJ8w4owzBfR1E2XbCQrfA,1795
10
10
  tumblrbot/utils/models.py,sha256=m5nbHh9z81KvK2yjM7u2sDAG3skDXbpyvVfDCEFuhzo,11962
11
11
  tumblrbot/utils/tumblr.py,sha256=vpLRX5cdhqmCaJdQbiGMOo9uOVhiC2CQF67BJ5u4fwU,1769
12
- tumblrbot-1.9.1.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
13
- tumblrbot-1.9.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14
- tumblrbot-1.9.1.dist-info/METADATA,sha256=2mHNOOxTCEK81riec5NdCM6p1Vb0Gtwc2BWslY2s9Ng,12736
15
- tumblrbot-1.9.1.dist-info/RECORD,,
12
+ tumblrbot-1.9.2.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
13
+ tumblrbot-1.9.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14
+ tumblrbot-1.9.2.dist-info/METADATA,sha256=gV_PvRQlmYzBqrUVqQzP98nxi_CpTsb9lRN2hc81a-8,12829
15
+ tumblrbot-1.9.2.dist-info/RECORD,,