Skip to content

Commit

Permalink
add agenda note
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom committed Jan 14, 2025
1 parent 661c210 commit 0e7d67a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extensions/agenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ async def gen_agenda(
str,
arc.StrParams("Select a Room"),
],
note: arc.Option[
str, arc.StrParams("Optional note to be included in the announcement")
] = None,
url: arc.Option[
str, arc.StrParams("URL of the agenda template from the MD")
] = AGENDA_TEMPLATE_URL,
Expand Down Expand Up @@ -144,6 +147,8 @@ async def gen_agenda(
||{role_mention(ROLE_IDS["committee"])}||
"""
if note:
announce_text += f"\n## Note:\n{note}"

announce = await plugin.client.rest.create_message(
CHANNEL_IDS["committee-announcements"],
Expand Down

0 comments on commit 0e7d67a

Please sign in to comment.