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-08-20 02:07:01 +02:00
parent be75d0afe3
commit cf2105f3c5

View file

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