From c65a24bdc0183e47f38c4930a653f969b8fd75a3 Mon Sep 17 00:00:00 2001 From: "Kreato (Work)" Date: Tue, 27 Aug 2024 10:56:11 +0300 Subject: [PATCH] common/alarm: fix emoji to check --- .gitignore | 3 ++- common/alarm.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c16b8b1..4b76b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -mono-go +monokit +bin diff --git a/common/alarm.go b/common/alarm.go index 594b047..08e206b 100644 --- a/common/alarm.go +++ b/common/alarm.go @@ -17,7 +17,7 @@ func AlarmCheckUp(service string, message string) { // Remove slashes from service and replace them with - serviceReplaced := strings.Replace(service, "/", "-", -1) file_path := TmpDir + "/" + serviceReplaced + ".log" - messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:red_circle:] " + message + messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:check:] " + message // Check if the file exists, send alarm and remove file if it does if _, err := os.Stat(file_path); err == nil {