File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
load_dotenv ()
6
6
7
- CORE_DEVS_CHANNEL_ID = os .environ ["CORE_DEVS_CHANNEL_ID" ]
8
- GENERAL_CHANNEL_ID = os .environ ["GENERAL_CHANNEL_ID" ]
7
+ CORE_DEVS_CHANNEL_ID = int ( os .environ ["CORE_DEVS_CHANNEL_ID" ])
8
+ GENERAL_CHANNEL_ID = int ( os .environ ["GENERAL_CHANNEL_ID" ])
9
9
DISCORD_TOKEN = os .environ ["DISCORD_TOKEN" ]
10
10
CALENDAR_URL = os .environ ["CALENDAR_URL" ]
11
11
NOTES_LINK = os .environ ["NOTES_LINK" ]
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ async def find_next_event_and_notify_core_team(client: discord.Client):
11
11
next_meeting = get_next_meeting ()
12
12
13
13
if not next_meeting :
14
+ print ("No next meeting found" )
14
15
return
15
16
16
- if (next_meeting .begin - arrow .now ()).days > 7 :
17
+ if (next_meeting .begin - arrow .now ()).days > 3 :
18
+ print ("Next meeting is more than 3 days away" )
17
19
return
18
20
19
21
event_date = next_meeting .begin .isoformat ()
You can’t perform that action at this time.
0 commit comments