Skip to content

Commit

Permalink
osrs subscription fix plural article typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Oct 9, 2024
1 parent 2c0b112 commit 8baeca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/subscribe/event-types/osrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
removed: "You will no longer receive pings when a new OSRS article is published."
},
generic: true,
cronExpression: "0 */5 * * * *",
cronExpression: "0 */1 * * * *",
subName: "OSRS article",
type: "custom",
process: async () => {
Expand Down Expand Up @@ -58,7 +58,7 @@ module.exports = {
}

const articleString = eligibleArticles.map(i => `${i.title} ${i.link}`).join(" -- ");
const noun = (eligibleArticles.length === 0) ? "article" : "articles";
const noun = (eligibleArticles.length === 1) ? "article" : "articles";

await sb.Logger.log(
"System.Request",
Expand Down

0 comments on commit 8baeca6

Please sign in to comment.