From c4a87a8258911470e4fc106ddb3f921c81a39693 Mon Sep 17 00:00:00 2001 From: James Mortemore Date: Sun, 8 Sep 2024 16:47:47 +0100 Subject: [PATCH] feat: added pointsTimeframe to docs part of https://github.com/BanManagement/BanManager/pull/995 --- .github/workflows/build.yaml | 1 + pages/docs/banmanager/configuration/config-yml.mdx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5da3bd50..2ddca225 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,6 +22,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + - run: echo 'NODE_OPTIONS="--openssl-legacy-provider"' >> $GITHUB_ENV - name: Cache Node.js modules uses: actions/cache@v3 with: diff --git a/pages/docs/banmanager/configuration/config-yml.mdx b/pages/docs/banmanager/configuration/config-yml.mdx index 3fd01fe3..7dab6f02 100644 --- a/pages/docs/banmanager/configuration/config-yml.mdx +++ b/pages/docs/banmanager/configuration/config-yml.mdx @@ -138,6 +138,7 @@ The main configuration file for BanManager. - ###### `` - ###### `cmd` - The command to execute upon reaching the number of points, the following tokens are available: `[player]`, `[playerId]`, `[actor]`, `[reason]`, `[id]`, `[points]`. - ###### `delay` - Optional, specify a delay in seconds of when to run the command, defaults to `0` and executes immediately. + - ###### `pointsTimeframe` - Optional, specify a [timeframe](/docs/banmanager/commands#time-format) to only trigger the command if the total accumulated points was reached within the past timeframe. For example, setting this to `30d` means the total number of points accumulated in the past 30 days must equal `` in order for this command to trigger. **Example** @@ -150,6 +151,10 @@ The main configuration file for BanManager. - cmd: ban [player] [reason] delay: 10 - cmd: mute [player] [reason] + '6': + - cmd: ban [player] [reason] + delay: 5 + pointsTimeframe: 30d ``` ---