Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-02-27 21:51:57 +08:00 committed by GitHub
parent 2d59847724
commit 03ce0f3b65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ COIN_DROP_PLACES = ["地上","桌子上","桌子底下","门口","窗户外","
coin = on_command('coin', developers=['Light-Beacon'], desc='抛n枚硬币')
@coin.handle('[<amount>] {投n枚硬币}',)
@coin.handle()
async def _(msg: MessageSession):
amount = msg.parsed_msg.get('<amount>', '1')
if not amount.isdigit():