Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-05-17 19:26:50 +08:00 committed by GitHub
parent ffc85ffef1
commit 23155eed2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ async def _(msg: Bot.MessageSession):
except ValueError:
return await msg.finish(msg.locale.t('random.message.number.error'))
random = secrets.randbelow(_max - _min + 1) + _min
await msg.finish(random)
await msg.finish('' + str(random))
@r.handle('choice ... {{random.help.choice}}', )