Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Rimossi caratteri non encodati
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxelweb committed May 11, 2020
1 parent a7d0945 commit bfadf3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions utils/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const botServer = http.createServer((req, res) => {
if (!checkChatId(chatId)) {
console.log("Invalid chat id");
} else {
const authMessage = `\u{1F510} Ecco il tuo codice di autenticazione: ${authCode}`;
const authMessage = `Ecco il tuo codice di autenticazione: ${authCode}`;
sendMessage(authMessage, chatId);
}
} else if (response.reqType === "alert") {
Expand All @@ -59,7 +59,7 @@ const botServer = http.createServer((req, res) => {
case 2:
valueType = "uguale";
}
const messagePart1 = `\u{1F510} Attenzione: il sensore #${sensorId} del dispositivo #${deviceId} ha registrato un valore di `;
const messagePart1 = `Alert: il sensore S#${sensorId} del dispositivo D#${deviceId} ha registrato un valore di `;
const messagePart2 = `${sensorValue} ${valueType} alla soglia (${threshold})`;
const alertMessage = messagePart1 + messagePart2;
// eslint-disable-next-line guard-for-in
Expand Down

0 comments on commit bfadf3a

Please sign in to comment.