2023-08-14 13:44:23 +00:00
|
|
|
---
|
|
|
|
title: "Available Actions"
|
|
|
|
---
|
|
|
|
|
|
|
|
{{ "{{< lead >}}" }}
|
|
|
|
All these actions can be executed by your bot as soon as you add them to rules. Read their documentation to learn how to master them.
|
|
|
|
{{ "{{< /lead >}}" }}
|
2021-09-22 13:36:45 +00:00
|
|
|
|
|
|
|
{{ range .Actors }}
|
|
|
|
## {{ .Name }}
|
|
|
|
|
|
|
|
{{ .Description }}
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- type: {{ .Type }}
|
|
|
|
{{- if gt (len .Fields) 0 }}
|
|
|
|
attributes:
|
|
|
|
{{- range .Fields }}
|
|
|
|
# {{ .Description }}
|
|
|
|
# Optional: {{ .Optional }}
|
|
|
|
{{- if eq .Type "bool" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2023-08-14 14:03:06 +00:00
|
|
|
{{ .Key }}: {{ eq .Default "true" }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "duration" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2023-08-14 14:03:06 +00:00
|
|
|
{{ .Key }}: {{ if eq .Default "" }}0s{{ else }}{{ .Default }}{{ end }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "int64" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2023-08-14 14:03:06 +00:00
|
|
|
{{ .Key }}: {{ if eq .Default "" }}0{{ else }}{{ .Default }}{{ end }}{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "string" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2023-08-14 14:03:06 +00:00
|
|
|
{{ .Key }}: "{{ .Default }}"{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "stringslice" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: array of strings{{ if .SupportTemplate }} (Supports Templating in each string){{ end }}
|
2023-08-14 14:03:06 +00:00
|
|
|
{{ .Key }}: []{{ if .DefaultComment }} # {{ .DefaultComment }}{{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
# Does not have configuration attributes
|
|
|
|
{{- end }}
|
|
|
|
```
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if false }}<!-- vim: set ft=markdown: -->{{ end }}
|