Update __init__.py
This commit is contained in:
parent
beec5370ca
commit
33265029e3
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Reference in a new issue