diff --git a/pyproject.toml b/pyproject.toml index 51d752d8..ba8d96ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.15.2" + version = "5.15.3" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/commands/fortune.py b/royalpack/commands/fortune.py index f839220a..22d294b9 100644 --- a/royalpack/commands/fortune.py +++ b/royalpack/commands/fortune.py @@ -72,8 +72,8 @@ class FortuneCommand(rc.Command): r = random.Random(x=h) - if author is not None and author.halloween2020 is not None: - author.halloween2020.x = datetime.datetime.now() + if author is not None and len(author.steam) >= 0 and author.steam[0].trionfistatus is not None: + author.steam[0].trionfistatus.x = datetime.datetime.now() await ru.asyncify(session.commit) message = r.sample(self._fortunes, 1)[0]