Skip to content

Commit 14e82a4

Browse files
committed
Cast channel id and change days to 3
1 parent 15e756c commit 14e82a4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
load_dotenv()
66

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"])
99
DISCORD_TOKEN = os.environ["DISCORD_TOKEN"]
1010
CALENDAR_URL = os.environ["CALENDAR_URL"]
1111
NOTES_LINK = os.environ["NOTES_LINK"]

src/meeting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ async def find_next_event_and_notify_core_team(client: discord.Client):
1111
next_meeting = get_next_meeting()
1212

1313
if not next_meeting:
14+
print("No next meeting found")
1415
return
1516

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")
1719
return
1820

1921
event_date = next_meeting.begin.isoformat()

0 commit comments

Comments
 (0)