From 7feabd7b9879e680b2c13ca5d93374f47fdfaac8 Mon Sep 17 00:00:00 2001 From: Matt Diamond Date: Sat, 11 Jan 2025 22:23:35 -0500 Subject: [PATCH] adding threshold default, re-enabling cron --- .github/workflows/node.js.yml | 4 ++-- ouija.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1876ace..e4b85ca 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -4,8 +4,8 @@ name: Node.js CI on: - # schedule: - # - cron: '0 * * * *' + schedule: + - cron: '0 * * * *' workflow_dispatch: inputs: submissionId: diff --git a/ouija.js b/ouija.js index 3c9df4a..b8181d8 100644 --- a/ouija.js +++ b/ouija.js @@ -21,7 +21,7 @@ const EOL = require('os').EOL, SUBREDDIT_NAME = 'AskOuija', OUIJA_RESULT_CLASS = 'ouija-result', - COMMENT_SCORE_THRESHOLD = process.env.THRESHOLD, + COMMENT_SCORE_THRESHOLD = process.env.THRESHOLD ?? 10, r = new snoowrap(config), splitter = new GraphemeSplitter(),