diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 77cd7a2..33a6edf 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -13,6 +13,7 @@ class Bot: self.password = password self.name = self.username.split("@")[0] self.rant_history = [] + self.amount_of_rants_to_check = 5 names = { "no-spam": "anna", "no-spam1": "ira", @@ -100,7 +101,7 @@ class Bot: def fight(self): self.rsleepii() - rants = self.api.get_rants("recent", 5, 0) + rants = self.api.get_rants("recent", self.amount_of_rants_to_check, 0) for rant in rants: if rant["id"] in self.rant_history: log.debug("{}: Already checked rant {}.".format(self.name, rant["id"]))