sync money
This commit is contained in:
parent
a88f62a501
commit
b2b6dd59ef
15
index.js
15
index.js
@ -284,7 +284,8 @@ puppeteer
|
||||
8. /view_history:[date] - Xem toàn bộ lịch sử vào lệnh; Ví dụ /view_history:3/3/2022;
|
||||
9. /analytics - Xem toàn bộ thống kê;
|
||||
10. /interrupted:number - Cắt lời;
|
||||
11. /reset_interrupted - Reset lãi ngày, tức là qua 1 ngày cần config lại cái này. Để hệ thống reset lãi về 0;`,
|
||||
11. /reset_interrupted - Reset lãi ngày, tức là qua 1 ngày cần config lại cái này. Để hệ thống reset lãi về 0;
|
||||
12. /sync_money - Đồng bộ tiền tính toán theo phiên và tiền trong ví;`,
|
||||
{ parse_mode: "HTML" }
|
||||
);
|
||||
return;
|
||||
@ -467,6 +468,18 @@ SELL: /sell:[number]`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (text === '/sync_money') {
|
||||
if (dInWeb && dInWeb.demoBalance) {
|
||||
d.demoBalance = dInWeb.demoBalance;
|
||||
TeleGlobal.sendMessage(
|
||||
myTelegramID,
|
||||
`Đồng bộ tiền thành công!`,
|
||||
{ parse_mode: "HTML" }
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user