4
4
5
5
from typing import Dict , Callable
6
6
7
- from django .utils import timezone
8
-
9
7
from core .models import DiscordMessage
10
8
from core .bot .channel_router import Channels
9
+ from core .bot .config import Roles
11
10
12
11
13
12
def standup_message_factory () -> DiscordMessage :
14
13
"""Factory for weekly standup message."""
15
- today = timezone .now ()
16
- week_number = today .isocalendar ()[1 ]
17
-
18
14
content = (
19
- f"## Monday Standup - Week { week_number } \n \n "
20
- f"Good morning team! Please share: \n \n "
21
- f"1. What you accomplished last week\n "
22
- f"2. What you're planning for this week\n "
23
- f"3. Any blockers or assistance needed "
15
+ f"## Happy Monday <@& { Roles . board_member_role_id } >! \n \n "
16
+ f"Let's keep everyone in the loop :) \n \n "
17
+ f"(1) What you worked on last week\n "
18
+ f"(2) What are you planning to work on this week\n "
19
+ f"(3) Are there any blockers or where could you use some help? "
24
20
)
25
21
26
22
# Using the test channel for now - replace with appropriate channel later
27
- channel = Channels .test_channel
23
+ channel = Channels .standup_channel
28
24
29
25
return DiscordMessage (
30
26
channel_id = channel .channel_id ,
@@ -37,4 +33,4 @@ def standup_message_factory() -> DiscordMessage:
37
33
# Registry of message factories
38
34
MESSAGE_FACTORIES : Dict [str , Callable [[], DiscordMessage ]] = {
39
35
"standup" : standup_message_factory ,
40
- }
36
+ }
0 commit comments