diff --git a/fedibot.py b/fedibot.py index aec8828..bf91e8a 100644 --- a/fedibot.py +++ b/fedibot.py @@ -195,8 +195,9 @@ class YandereBot: # popping it at index 0. This should handle any error that might occur while posting. # # This function should return 'None' if a post failed, and the picked item from self.listPictures if it succeeded. - def post(self, picked): + def post(self): # Post + picked = self.pick() self._post(picked) # After a successful post @@ -239,7 +240,7 @@ class YandereBot: def main_loop(self): sleep_seconds = self.settings["settings_behavior"]["retry_seconds"] while self.can_post(): - picked = self.post(self.pick()) + picked = self.post() self.after_post(picked) if self.can_post(): self.eventSleep.wait(sleep_seconds)