Skip to content

Commit

Permalink
feat: add zoom close message (trees) (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Jul 9, 2022
1 parent 0e36730 commit 61afca2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bot/exts/meetings/zoom_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,15 @@ async def handle_zoom_event(bot: Bot, data: dict):
disnake_messages.append(disnake_message)
if event == "meeting.ended":
await maybe_clear_reaction(disnake_message, REPOST_EMOJI)
embed = disnake.Embed(
title="✨ _Zoom meeting ended by host_", color=disnake.Color.blue()
)
embed.set_footer(
text="🌱🌱 2 trees will be planted to offset the emissions from this meeting."
)
edit_kwargs = {
"content": "✨ _Zoom meeting ended by host_",
"embed": None,
"content": None,
"embed": embed,
"view": None,
}
else:
Expand Down

0 comments on commit 61afca2

Please sign in to comment.