ttstoy: skip accessibility auto-read for messages starting with '..'
This commit is contained in:
@@ -2804,6 +2804,10 @@ class TtsToy(Cog):
|
||||
if ctx.valid:
|
||||
return
|
||||
|
||||
# Messages starting with '..' are intentionally not read aloud.
|
||||
if (message.content or "").lstrip().startswith(".."):
|
||||
return
|
||||
|
||||
spoken = self._access_describe_message(message)
|
||||
if not spoken:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user