\usepackage{xcolor}
This commit is contained in:
parent
c1a546c9e7
commit
9410d9e2af
@ -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
|
# 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)
|
RAW_CODE_REGEX = re.compile(r"^(?:[ \t]*\n)*" r"(?P<code>.*?)" r"\s*$", flags=re.DOTALL)
|
||||||
|
|
||||||
|
|
||||||
async def threads(channel: discord.TextChannel):
|
async def threads(channel: discord.TextChannel):
|
||||||
for t in channel.threads:
|
for t in channel.threads:
|
||||||
yield t
|
yield t
|
||||||
@ -134,7 +135,11 @@ class Night(commands.Cog):
|
|||||||
viewer="BytesIO",
|
viewer="BytesIO",
|
||||||
euler=False,
|
euler=False,
|
||||||
outputbuffer=buf,
|
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)
|
await asyncio.to_thread(preview)
|
||||||
|
Loading…
Reference in New Issue
Block a user