{{define "cp_custom_commands_edit_cmd"}} {{template "cp_head" .}} {{template "cp_alerts" .}}
{{$guild := .ActiveGuild.ID}} {{$g := .ActiveGuild}} {{$dot := .}}

#{{.CC.LocalID}} - {{index .CCTriggerTypes .CC.TriggerType}}{{if and (ne .CC.TriggerType 5) (ne .CC.TriggerType 6)}}: {{.CC.TextTrigger}}{{else if ne .CC.TriggerType 6}}: Every {{call .GetCCInterval .CC}} {{if eq (call .GetCCIntervalType .CC) 1}}hour(s){{else}}minute(s){{end}}{{end}}

No trigger: can only be triggered manually by other custom commands

Command Trigger: Works the same way as normal commands by using the command prefix or bot mention followed by the trigger.
For example: If you set the trigger to hello then you can type -hello or @yagpdb hello to trigger it (assuming default default settings)

Any message that starts with the trigger will run the command.

Any message that contains the trigger will run the command.

Any message that matches the provided regex will trigger the command.

Any message that is equal to the trigger will run the command.

The command will trigger on the specified reaction events.

The command will run at a hourly interval, for example every 5 hours.

The command will run at a minute interval, for example every 10 minutes.

{{range .CC.Responses}}
{{else}}
{{end}} Info
{{$selectedGroup := .CC.GroupID.Int64}}

Last error

{{if .CC.LastError}}{{formatTime .CC.LastErrorTime.Time.UTC}} - {{.CC.LastError}}{{else}}None{{end}}

Run count

{{.CC.RunCount}}

Output errors as command reponse

{{checkbox "show_errors" "show_errors" "" .CC.ShowErrors}}

Channel/User role restrictions


{{template "cp_footer" .}} {{end}}