create function sendNotification

This commit is contained in:
joseph le 2023-09-27 16:34:21 +07:00
parent 2936bbc562
commit 6dd4c82247
1 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,15 @@ const sendNotification = async () => {
});
} else {
console.log("server good");
let content = "Server good!";
let params = {
type: "stream",
to: "Result test - auto.nswteam.net",
topic: "test",
content: content,
};
client.messages.send(params);
}
} else {
console.log({ auto1: auto1, auto2: auto2, log: log });