Skip to content

Clarity on available templates and variables #121

Description

@CryptoMaximalist

One other thing I've been unsure about has been the available options to use in a {{mustache.template}}. The first two are intuitive, {{rule.rulename}}, however I never know what the final dotwalk can be unless it's been in an example.

For example, I haven't seen any docs about variables available for ModNote rules and the variables here resolves as blank.

          - kind: ban
            authorIs:
              include:
                - name: hasEnoughIPModNotes
                  criteria:
                    modActions:
                      - note: '/insufficient participation/i'
                        noteType:
                          - SPAM_WARNING
                        search: total
                        count: "> 2 in 1 year"
            duration: 14
            message: >-
              **User has had {{rules.hasenoughipmodnotes.totalCount}} warnings

              Summary- {{rules.hasenoughipmodnotes.thresholdSummary}}

Is this info somewhere in the schema that I've been missing? It'd be cool if this info was in more of the docs and examples. Maybe even it could be an autocomplete function in the editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions