mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Add data path and metadata file to [p]debuginfo, add missing info to non-embed version (#4524)
* Add data path to `[p]debuginfo`, add missing info in non-embed version * More things * cast to str * another reorder
This commit is contained in:
commit
ce6c17debc
@ -2579,6 +2579,10 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
osver = "Could not parse OS, report this on Github."
|
osver = "Could not parse OS, report this on Github."
|
||||||
user_who_ran = getpass.getuser()
|
user_who_ran = getpass.getuser()
|
||||||
driver = storage_type()
|
driver = storage_type()
|
||||||
|
|
||||||
|
from redbot.core.data_manager import basic_config, config_file
|
||||||
|
|
||||||
|
data_path = Path(basic_config["DATA_PATH"])
|
||||||
disabled_intents = (
|
disabled_intents = (
|
||||||
", ".join(
|
", ".join(
|
||||||
intent_name.replace("_", " ").title()
|
intent_name.replace("_", " ").title()
|
||||||
@ -2596,27 +2600,40 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
e.add_field(name="Pip version", value=pipver, inline=True)
|
e.add_field(name="Pip version", value=pipver, inline=True)
|
||||||
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="Storage type", value=driver, inline=True)
|
||||||
|
e.add_field(name="Disabled intents", value=disabled_intents, 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(
|
e.add_field(
|
||||||
name="Python executable",
|
name="Python executable",
|
||||||
value=escape(sys.executable, formatting=True),
|
value=escape(sys.executable, formatting=True),
|
||||||
inline=False,
|
inline=False,
|
||||||
)
|
)
|
||||||
e.add_field(name="Storage type", value=driver, inline=False)
|
e.add_field(
|
||||||
e.add_field(name="Disabled intents", value=disabled_intents, inline=False)
|
name="Data path",
|
||||||
|
value=escape(str(data_path), formatting=True),
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
|
e.add_field(
|
||||||
|
name="Metadata file",
|
||||||
|
value=escape(str(config_file), formatting=True),
|
||||||
|
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())
|
||||||
+ "User: {}\n".format(user_who_ran)
|
+ "User: {}\n".format(user_who_ran)
|
||||||
+ "OS version: {}\n".format(osver)
|
+ "OS version: {}\n".format(osver)
|
||||||
+ "Storage type: {}\n".format(driver)
|
+ "Storage type: {}\n".format(driver)
|
||||||
|
+ "Disabled intents: {}\n".format(disabled_intents)
|
||||||
|
+ "Python executable: {}\n".format(sys.executable)
|
||||||
|
+ "Data path: {}\n".format(data_path)
|
||||||
|
+ "Metadata file: {}\n".format(config_file)
|
||||||
)
|
)
|
||||||
await ctx.send(box(info))
|
await ctx.send(box(info))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user