create function sendNotification
This commit is contained in:
parent
2936bbc562
commit
6dd4c82247
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue