mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Core] Add Python executable field to [p]debuginfo command (#3184)
* Update core_commands.py * Create 3184.enhance.rst
This commit is contained in:
parent
b6ae7a6d21
commit
335ded674e
1
changelog.d/3184.enhance.rst
Normal file
1
changelog.d/3184.enhance.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add Python executable field to `[p]debuginfo` command.
|
||||||
@ -1592,12 +1592,14 @@ 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)
|
||||||
await ctx.send(embed=e)
|
await ctx.send(embed=e)
|
||||||
else:
|
else:
|
||||||
info = (
|
info = (
|
||||||
"Debug Info for Red\n\n"
|
"Debug Info for Red\n\n"
|
||||||
+ "Red version: {}\n".format(redver)
|
+ "Red version: {}\n".format(redver)
|
||||||
+ "Python version: {}\n".format(pyver)
|
+ "Python version: {}\n".format(pyver)
|
||||||
|
+ "Python executable: {}\n".format(sys.executable)
|
||||||
+ "Discord.py version: {}\n".format(dpy_version)
|
+ "Discord.py version: {}\n".format(dpy_version)
|
||||||
+ "Pip version: {}\n".format(pipver)
|
+ "Pip version: {}\n".format(pipver)
|
||||||
+ "System arch: {}\n".format(platform.machine())
|
+ "System arch: {}\n".format(platform.machine())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user