From 595de440a043efde0db419147185b1a185485e87 Mon Sep 17 00:00:00 2001 From: nguyen dung Date: Fri, 25 Feb 2022 15:36:54 +0000 Subject: [PATCH] Fix --- index.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index 6e831ad..89ab386 100644 --- a/index.js +++ b/index.js @@ -363,15 +363,6 @@ puppeteer const res = await response.json(); if (res.ok) { d = res.d; - TeleGlobal.sendMessage( - TELEGRAM_CHANNEL, - ` -💰 TK Demo: ${d.demoBalance} -💰 TK USDT: ${d.usdtAvailableBalance} -💰 TK ALI: ${d.aliAvailableBalance} - `, - { parse_mode: "HTML" } - ); } } }) @@ -449,7 +440,8 @@ puppeteer 4. /set_count_trade:[number] - Gặp số lượng lệnh thông như này thì đánh ngược lại 5. /set_money_enter:[5,10,20,40] - Vào tiền khi đủ điều kiện 6. /history - Vào tiền khi đủ điều kiện -7. /analytic - Thống kê theo ngày;`, +7. /check_tk - Vào tiền khi đủ điều kiện +8. /analytic - Thống kê theo ngày;`, { parse_mode: "HTML" } ); return; @@ -466,6 +458,19 @@ puppeteer return; } + if (text === "/check_tk") { + TeleGlobal.sendMessage( + TELEGRAM_CHANNEL, + ` +💰 TK Demo: ${d.demoBalance} +💰 TK USDT: ${d.usdtAvailableBalance} +💰 TK ALI: ${d.aliAvailableBalance} + `, + { parse_mode: "HTML" } + ); + return; + } + if (text === "/enable_auto_trade") { CONFIG.autoTrade = true; TeleGlobal.sendMessage(