mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Core] Escape markdown in python executable path in `[p]debuginfo` command. (#3254)
* Update core_commands.py * Create 3254.misc.rst
This commit is contained in:
parent
cacfa163ce
commit
b6ca8f7d2c
1
changelog.d/3254.misc.rst
Normal file
1
changelog.d/3254.misc.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Escape markdown in python executable path in ``[p]debuginfo`` command.
|
||||||
@ -1592,7 +1592,11 @@ class Core(commands.Cog, CoreLogic):
|
|||||||
e.add_field(name="System arch", value=platform.machine(), inline=True)
|
e.add_field(name="System arch", value=platform.machine(), inline=True)
|
||||||
e.add_field(name="User", value=user_who_ran, inline=True)
|
e.add_field(name="User", value=user_who_ran, inline=True)
|
||||||
e.add_field(name="OS version", value=osver, inline=False)
|
e.add_field(name="OS version", value=osver, inline=False)
|
||||||
e.add_field(name="Python executable", value=sys.executable, inline=False)
|
e.add_field(
|
||||||
|
name="Python executable",
|
||||||
|
value=escape(sys.executable, formatting=True),
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
await ctx.send(embed=e)
|
await ctx.send(embed=e)
|
||||||
else:
|
else:
|
||||||
info = (
|
info = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user