\usepackage{xcolor}

This commit is contained in:
AF 2024-05-14 09:33:18 +00:00
parent c1a546c9e7
commit 9410d9e2af
Signed by: alisa
SSH Key Fingerprint: SHA256:vNY4pdIZvO1FYJKHROkdHLtvyopizvZVAEwg9AF6h04

View File

@ -26,6 +26,7 @@ FORMATTED_CODE_REGEX = re.compile(
# https://github.com/python-discord/bot-core/blob/main/pydis_core/utils/regex.py#L44C1-L49C2
RAW_CODE_REGEX = re.compile(r"^(?:[ \t]*\n)*" r"(?P<code>.*?)" r"\s*$", flags=re.DOTALL)
async def threads(channel: discord.TextChannel):
for t in channel.threads:
yield t
@ -134,7 +135,11 @@ class Night(commands.Cog):
viewer="BytesIO",
euler=False,
outputbuffer=buf,
dvioptions=["-fg", "White", "-bg", "Black"],
dvioptions=["-fg", "White", "-bg", "Black", "-D", "200"],
extra_preamble=r"""
\usepackage{xcolor}
\color{white}
""",
)
await asyncio.to_thread(preview)