Skip to content

Commit

Permalink
Update: set activity at same interval as scheduling airing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cbackas committed Nov 20, 2023
1 parent 878be2b commit 8c59441
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,15 @@ export class App {
void scheduleAiringMessages(this)
void setRandomShowActivity(user)

schedule.scheduleJob('lifecycle:30min:updateBotActivity', '*/30 * * * *', () => {
void setRandomShowActivity(user)
})

schedule.scheduleJob('lifecycle:10min:announceEpisodes', '5-55/10 * * * *', async () => {
void scheduleAiringMessages(this)
void setRandomShowActivity(user)
})

schedule.scheduleJob('lifecycle:4hours:fetchEpisoded', '0 */4 * * *', async () => {
setTVDBLoadingActivity(user)
await pruneUnsubscribedShows()
await checkForAiringEpisodes()
void setRandomShowActivity(user)
})

schedule.scheduleJob('lifecycle:daily:morningSummary', '0 8 * * *', async () => {
Expand Down

0 comments on commit 8c59441

Please sign in to comment.