From d7ed0d9f7d8dbd4021a6af848146a41ecdff2de9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 13 Oct 2020 22:33:24 +0200 Subject: [PATCH] fics --- royalpack/commands/fortune.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/royalpack/commands/fortune.py b/royalpack/commands/fortune.py index b390d7b9..bafcdd98 100644 --- a/royalpack/commands/fortune.py +++ b/royalpack/commands/fortune.py @@ -66,6 +66,9 @@ class FortuneCommand(rc.Command): async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None: async with data.session_acm() as session: author = await data.find_author(session=session, required=True) + if author.trionfistatus and author.trionfistatus.zero: + author.trionfistatus.x = datetime.datetime.now() + today = datetime.date.today() h = author.uid * hash(today) @@ -74,4 +77,3 @@ class FortuneCommand(rc.Command): message = r.sample(self._fortunes, 1)[0] await data.reply(message) -