diff --git a/actorDocs.tpl b/actorDocs.tpl index 91b7fd2..f0b6157 100644 --- a/actorDocs.tpl +++ b/actorDocs.tpl @@ -20,23 +20,23 @@ All these actions can be executed by your bot as soon as you add them to rules. # Optional: {{ .Optional }} {{- if eq .Type "bool" }} # Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }} - {{ .Key }}: {{ eq .Default "true" }} + {{ .Key }}: {{ eq .Default "true" }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }} {{- end }} {{- if eq .Type "duration" }} # Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }} - {{ .Key }}: {{ if eq .Default "" }}0s{{ else }}{{ .Default }}{{ end }} + {{ .Key }}: {{ if eq .Default "" }}0s{{ else }}{{ .Default }}{{ end }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }} {{- end }} {{- if eq .Type "int64" }} # Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }} - {{ .Key }}: {{ if eq .Default "" }}0{{ else }}{{ .Default }}{{ end }} + {{ .Key }}: {{ if eq .Default "" }}0{{ else }}{{ .Default }}{{ end }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }} {{- end }} {{- if eq .Type "string" }} # Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }} - {{ .Key }}: "{{ .Default }}" + {{ .Key }}: "{{ .Default }}"{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }} {{- end }} {{- if eq .Type "stringslice" }} # Type: array of strings{{ if .SupportTemplate }} (Supports Templating in each string){{ end }} - {{ .Key }}: [] + {{ .Key }}: []{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }} {{- end }} {{- end }} {{- else }} diff --git a/plugins/action_docs.go b/plugins/action_docs.go index bd88bf8..09917c7 100644 --- a/plugins/action_docs.go +++ b/plugins/action_docs.go @@ -11,6 +11,7 @@ type ( ActionDocumentationField struct { Default string `json:"default"` + DefaultComment string `json:"default_comment"` Description string `json:"description"` Key string `json:"key"` Long bool `json:"long"`