Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zoom): reply when starting pending zoom in channel #153

Merged
merged 1 commit into from
Mar 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions bot/exts/meetings/meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,16 @@ async def zoom_start(self, ctx: Context, meeting_id: Optional[int] = None):
embed=discord.Embed(title="🚀 Meeting Details Revealed", description=links)
)
else:
link = next(
(
message.jump_url
for message in messages
if message.channel.id == ctx.channel.id
),
channel_message = next(
(message for message in messages if message.channel.id == ctx.channel.id),
None,
)
content = (
f"🚀 Meeting details revealed: {link}"
if link
else "🚀 Meeting details revealed."
)
await ctx.channel.send(content)
if channel_message:
await channel_message.reply(
f"🚀 Meeting details revealed: {channel_message.jump_url}"
)
else:
await ctx.channel.send("🚀 Meeting details revealed.")

@zoom_group.command(
name="stop",
Expand Down