mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
fics
This commit is contained in:
parent
3fdf5667a9
commit
d7ed0d9f7d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue