sync money

This commit is contained in:
Dung Nguyen 2022-03-05 11:28:19 +07:00
parent a88f62a501
commit b2b6dd59ef

View File

@ -284,7 +284,8 @@ puppeteer
8. /view_history:[date] - Xem toàn bộ lịch sử vào lệnh; dụ /view_history:3/3/2022;
9. /analytics - Xem toàn bộ thống ;
10. /interrupted:number - Cắt lời;
11. /reset_interrupted - Reset lãi ngày, tức 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 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 tiền trong ;`,
{ 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;
}
});
});