update function power
This commit is contained in:
parent
8b0d67a965
commit
476a696317
|
|
@ -45,8 +45,6 @@ const { addLogFunction } = require("./addLogFunctionJS");
|
||||||
return data.map((u) => u.join("\n\n"));
|
return data.map((u) => u.join("\n\n"));
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Table data:", tableData);
|
|
||||||
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
let params = {
|
let params = {
|
||||||
type: "stream",
|
type: "stream",
|
||||||
|
|
@ -56,10 +54,12 @@ const { addLogFunction } = require("./addLogFunctionJS");
|
||||||
":warning: :date: :warning:\n\n" + tableData.join("\n\n") + "\n-------",
|
":warning: :date: :warning:\n\n" + tableData.join("\n\n") + "\n-------",
|
||||||
};
|
};
|
||||||
client.messages.send(params);
|
client.messages.send(params);
|
||||||
|
let checkTime = moment(Date.now()).format("DD_MM_YYYY").toString()
|
||||||
if (
|
if (
|
||||||
tableData.filter((i) => i.includes("KDC 91B") || i.includes("KDC91B"))
|
tableData.filter((i) => (i.includes("KDC 91B") || i.includes("KDC91B")) && i.includes(checkTime))
|
||||||
.length > 0
|
.length > 0
|
||||||
) {
|
) {
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
type: "stream",
|
type: "stream",
|
||||||
to: "APAC Tech Bão",
|
to: "APAC Tech Bão",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue