From 27001a82460d8f565cec654c8b5fb67c9b84cc6f Mon Sep 17 00:00:00 2001 From: kingston Date: Mon, 19 Oct 2026 00:19:14 -0500 Subject: [PATCH] ttstoy: cleaner accessibility voice list with current-voice marker --- ttstoy/ttstoy.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ttstoy/ttstoy.py b/ttstoy/ttstoy.py index 12f7863..9a083de 100644 --- a/ttstoy/ttstoy.py +++ b/ttstoy/ttstoy.py @@ -2151,12 +2151,18 @@ class TtsToy(Cog): if voice is None: current = self._access_voice_for(ctx.guild.id, ctx.author.id, engine) current_label = self._access_voice_label(engine, current) - listing = ", ".join(f"`{self._access_voice_label(engine, v)}`" for v in pool) + lines = [] + for v in pool: + lbl = self._access_voice_label(engine, v) + marker = ">" if v == current else " " + lines.append(f"{marker} {lbl}") + block = "\n".join(lines) return await ctx.send( - f"Engine `{engine}`. Your voice: `{current_label}`.\n" - f"Available: {listing}\n" - f"Set with `{ctx.clean_prefix}ttstoy accessibility voice ` " - f"(or `auto` to be auto-assigned)." + f"**Accessibility voices** (engine: `{engine}`)\n" + f"Your voice: `{current_label}` (marked with `>` below)\n" + f"```\n{block}\n```\n" + f"Set yours: `{ctx.clean_prefix}ttstoy accessibility voice ` " + f"(or `auto`)" ) choice = voice.strip()