Skip to content

Implement: vpc-bot-announce-tourney.md - #6

Merged
emb417 merged 2 commits into
mainfrom
vault-spec/vpc-bot-announce-tourney
Sep 2, 2026
Merged

emb417 merged 2 commits into
mainfrom
vault-spec/vpc-bot-announce-tourney

Conversation

@emb417

@emb417 emb417 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Auto-generated from vault spec notes/vpc-bot-announce-tourney.md.

Announcing the VPC Tournament

To drive more tournament interest, use the scheduler to message the #competition-corner channel on Discord of the currently active tournament every Tuesday at midnight.


Expanded Spec

Problem

There is currently no automated way to generate community interest for active tournaments. Manually messaging the #competition-corner channel is inconsistent, and players may miss active events.

Acceptance Criteria

  • Automation: Add a new cron job in src/services/scheduler.js that triggers every Tuesday at 12:00 AM (midnight) Pacific Time.
  • Functionality:
    • Query active tournaments using findActiveTournaments from src/services/database.js.
    • If active tournaments exist, format them using buildTournamentListEmbed from src/lib/tournaments/embed.js.
    • Send the generated embed to the COMPETITION_CHANNEL_ID.
  • Handling: Ensure the bot handles cases where no active tournaments are found gracefully (e.g., skip sending or send a "no active tournaments" notification).

Notes for implementer

  • Use node-cron in src/services/scheduler.js, mirroring the syntax of initScheduledJobs.
  • Ensure the job respects the America/Los_Angeles timezone as per existing jobs in the same file.
  • The COMPETITION_CHANNEL_ID is already imported and available in scheduler.js.
  • Reuse buildTournamentListEmbed which is already imported in scheduler.js and designed for this purpose.

@emb417 emb417 added the minor Minor-level semver bump label Sep 2, 2026
@emb417
emb417 merged commit 7766764 into main Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor-level semver bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant