File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,17 @@ export async function execute() {
261
261
console . log ( "Checking for events..." ) ;
262
262
const events = await getValidEvents ( ) ;
263
263
264
+ const todayDate = new Date ( ) ;
265
+ const todayDay = todayDate . getDate ( ) ;
266
+ const todayMonth = todayDate . getMonth ( ) + 1 ;
267
+ const todayYear = todayDate . getFullYear ( ) ;
268
+ const todayDateString = todayMonth + "/" + todayDay + "/" + todayYear ;
269
+
264
270
if ( events . length === 0 ) {
265
271
return ;
266
272
} else if ( events . length >= 1 ) {
267
273
webhook . send (
268
- `Hey everyone, here are some reminders about our upcoming events! <@&${ config . CALENDAR_ROLE_ID } >\n`
274
+ `Hey everyone, it's ${ todayDateString } , here are some reminders about our upcoming events! <@&${ config . CALENDAR_ROLE_ID } >\n`
269
275
) ;
270
276
}
271
277
You can’t perform that action at this time.
0 commit comments