1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2020-10-13 22:33:24 +02:00
parent 3fdf5667a9
commit d7ed0d9f7d

View file

@ -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)