Skip to content

Commit 7e54bb3

Browse files
authored
Merge pull request #29 from fastruby/feature/rake-task-daily-puzzle-one-off
One more task to send a daily puzzle manually if needed
2 parents 810be5b + 08c970d commit 7e54bb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/tasks/discord.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ namespace :discord do
44
bot.run
55
end
66

7+
desc "Sends a daily puzzle. Useful for days when the approved puzzles where at 0 when the cron job ran."
8+
task new_puzzle: :environment do
9+
DailyPuzzleJob.perform_now
10+
end
11+
712
desc "Clear all globally registered bot commands and re-register them"
813
task reset_commands: :environment do
914
# Fetch and delete all existing commands

0 commit comments

Comments
 (0)