mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 06:32:47 +00:00
bc fix a bug
This commit is contained in:
parent
38fc0ba479
commit
b8a4cb6571
6
bc.py
6
bc.py
@ -70,7 +70,11 @@ async def coin(context: Message) -> None:
|
||||
return
|
||||
else:
|
||||
prices = binanceclient.get_all_tickers()
|
||||
number = float(action[0])
|
||||
try:
|
||||
number = float(action[0])
|
||||
except ValueError:
|
||||
await context.edit('输入错误.\n-bc 数量 币种1 币种2')
|
||||
return
|
||||
_from = action[1].upper().strip()
|
||||
_to = action[2].upper().strip()
|
||||
front_text = ''
|
||||
|
Loading…
Reference in New Issue
Block a user