added full ticket functionality to forms

This commit is contained in:
2024-03-26 23:13:06 +01:00
parent 96f09de6f1
commit f6b843d1a7
5 changed files with 462 additions and 104 deletions

View File

@@ -63,9 +63,14 @@ func webhook(p []byte) {
var logJson Log
json.Unmarshal(p, &logJson)
var color string = "36314"
if logJson.Level == "error" {
color = "16739179"
formTitles := map[string]string{
"error": "16739179",
"debug": "16111426",
}
if val, ok := formTitles[logJson.Level]; ok {
color = val
}
fileArray := strings.Split(strings.TrimPrefix(logJson.File, RootDir()), ":")
m := Message{
Embeds: []Embed{