Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-05-22 10:07:08 +08:00 committed by GitHub
parent beec5370ca
commit 33265029e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ async def exchange(base_currency, target_currency, amount: float, msg):
@excr.regex(r"(\d+(\.\d+)?)?\s([a-zA-Z]{3})\s?(到|兑|to)\s?([a-zA-Z]{3})", desc='{exchange_rate.help.regex}')
@excr.regex(r"(\d+(\.\d+)?)?\s?([a-zA-Z]{3})\s?(到|兑|兌|换|換|to)\s?([a-zA-Z]{3})", desc='{exchange_rate.help.regex}')
async def _(msg: Bot.MessageSession):
groups = msg.matched_msg.groups()
amount = groups[0] if groups[0] else '1'