File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { resetUGOPlayed } from '@/cache/ugo' ;
2- import Discord from '@/discord' ;
32import { TimeZone } from '@/ps/handlers/cron/constants' ;
4- import getSecretFunction from '@/secrets/functions' ;
53
64import type { PSCronJobManager } from '@/ps/handlers/cron/index' ;
7- import type { Client as DiscordClient } from 'discord.js' ;
85import type { Client } from 'ps-client' ;
96
107// UGO-CODE
@@ -14,14 +11,4 @@ export function register(this: Client, Jobs: PSCronJobManager): void {
1411 this . getRoom ( 'Board Games' ) . send ( `/modnote Reset player participation counts for the day! Backup: ${ backupUrl } ` ) ;
1512 } ) ;
1613 } ) ;
17- // August 29, 22:00 GMT
18- Jobs . register ( 'hunt-swap-ping' , '0 22 29 08 *' , TimeZone . GMT , ( ) => {
19- getSecretFunction < ( client : DiscordClient ) => Promise < void > > ( 'pingForHuntSwap' , async ( ) => { } ) ( Discord )
20- . then ( ( ) => {
21- this . getRoom ( 'Scavengers' ) . send ( '/modnote Pinged for hunt swap. I think. Probably. I hope.' ) ;
22- } )
23- . catch ( ( ) => {
24- this . getRoom ( 'Scavengers' ) . send ( '/modnote Unable to ping for hunt swap! Tag PartMan!' ) ;
25- } ) ;
26- } ) ;
2714}
You can’t perform that action at this time.
0 commit comments