From de1941bab4d4e0b403851f839fecd3a2cee5f1f5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 28 Sep 2020 20:22:57 +0200 Subject: [PATCH] bump --- pyproject.toml | 2 +- royalpack/commands/fortune.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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]