Skip to content

Commit

Permalink
Fixed pep8 whitespace issues, re-add accidentally removed functionali…
Browse files Browse the repository at this point in the history
…ty from merge
  • Loading branch information
TomCasavant committed May 5, 2024
1 parent 144f66c commit eab258d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def run(self):
image = self.gameboy.screenshot()
alt_text = 'Screenshot of ' + self.gameboy_config.get('title', 'a Game Boy game.')
media = self.retry_mastodon_call(
self.mastodon.media_post,
retries=5,
interval=10,
media_file=image,
self.mastodon.media_post,
retries=5,
interval=10,
media_file=image,
description=alt_text
)
media_ids = []
Expand Down Expand Up @@ -230,6 +230,8 @@ def run(self):
media_ids=[media_ids],
)

poll_duration = self.mastodon_config.get('poll_duration', 60)

poll = self.retry_mastodon_call(
self.post_poll,
retries=5,
Expand All @@ -245,6 +247,7 @@ def run(self):
"Start",
"Select",
],
expires_in=poll_duration*60,
reply_id=post["id"],
)

Expand Down

0 comments on commit eab258d

Please sign in to comment.