yuripeyamashita
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -107,6 +107,7 @@ def api():
|
|
107 |
if "$" not in payload.get("msg_text"):
|
108 |
if "計算" in payload.get("msg_text"):
|
109 |
try:
|
|
|
110 |
number = float(simple_eval(text.split("計算")[1]))
|
111 |
send_text(payload.get("token"), f"$ {number}", payload.get("quote_token"))
|
112 |
except:
|
|
|
107 |
if "$" not in payload.get("msg_text"):
|
108 |
if "計算" in payload.get("msg_text"):
|
109 |
try:
|
110 |
+
text = payload.get("msg_text")
|
111 |
number = float(simple_eval(text.split("計算")[1]))
|
112 |
send_text(payload.get("token"), f"$ {number}", payload.get("quote_token"))
|
113 |
except:
|