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