diff --git a/zulip_bots/zulip_bots/schedulebot.py b/zulip_bots/zulip_bots/schedulebot.py index 2015fad..86023b8 100644 --- a/zulip_bots/zulip_bots/schedulebot.py +++ b/zulip_bots/zulip_bots/schedulebot.py @@ -176,12 +176,10 @@ def post_schedule(client, send_client, start_time, schedule, stream, hour, no_me ] for role, user_ids in sorted(online_by_role.items()): user_ids.sort() - lines += [ - "Current {}:".format(role), - ] + [ - f"- {render_name(user_id, False)}" - for user_id in user_ids - ] + lines.append("Current {}(s): ".format( + role, + ", ".join(render_name(user_id, False) for user_id in user_ids), + )) lines += [ "", "---",