mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
PEP8
This commit is contained in:
parent
be75d0afe3
commit
cf2105f3c5
1 changed files with 5 additions and 8 deletions
|
@ -71,12 +71,9 @@ class AnswerCommand(rc.Command):
|
|||
]
|
||||
|
||||
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
||||
|
||||
h = hash(datetime.datetime.now())
|
||||
|
||||
r = random.Random(x=h)
|
||||
|
||||
message = r.sample(self._answers, 1)[0]
|
||||
await data.reply(message)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue