Implement: vpc-bot-announce-tourney.md - #6
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-cornerchannel is inconsistent, and players may miss active events.Acceptance Criteria
src/services/scheduler.jsthat triggers every Tuesday at 12:00 AM (midnight) Pacific Time.findActiveTournamentsfromsrc/services/database.js.buildTournamentListEmbedfromsrc/lib/tournaments/embed.js.COMPETITION_CHANNEL_ID.Notes for implementer
node-croninsrc/services/scheduler.js, mirroring the syntax ofinitScheduledJobs.America/Los_Angelestimezone as per existing jobs in the same file.COMPETITION_CHANNEL_IDis already imported and available inscheduler.js.buildTournamentListEmbedwhich is already imported inscheduler.jsand designed for this purpose.