Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-05-21 21:49:19 +08:00 committed by GitHub
parent 3db94b9273
commit 76c2359e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ async def exchange(base_currency, target_currency, amount: float, msg):
@excr.regex(r"(\d+(\.\d+)?)([a-zA-Z]{3})[至|到| to ]([a-zA-Z]{3})", desc='{exchange_rate.help.regex}')
async def _(msg: Bot.MessageSession):
groups = message.matched_msg.groups()
groups = msg.matched_msg.groups()
amount = groups[0] if groups[0] else '1'
base = groups[2].upper()
target = groups[3].upper()