mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-15 11:54:40 +08:00
测测你的
This commit is contained in:
parent
db6045ced7
commit
da2b28c27d
@ -714,6 +714,7 @@ linglun_convert = on_alconna(
|
|||||||
Option(
|
Option(
|
||||||
"-fa|--forward-axis", default="z+", args=Args["forward-axis", str, "z+"]
|
"-fa|--forward-axis", default="z+", args=Args["forward-axis", str, "z+"]
|
||||||
),
|
),
|
||||||
|
Option("--debug", default=False, action=store_true),
|
||||||
),
|
),
|
||||||
# permission=SUPERUSER,
|
# permission=SUPERUSER,
|
||||||
)
|
)
|
||||||
@ -770,6 +771,7 @@ async def _(
|
|||||||
"height-limit": 32,
|
"height-limit": 32,
|
||||||
"author": "Eilles",
|
"author": "Eilles",
|
||||||
"forward-axis": "z+",
|
"forward-axis": "z+",
|
||||||
|
"debug": False,
|
||||||
}
|
}
|
||||||
for arg in _args.keys():
|
for arg in _args.keys():
|
||||||
_args[arg] = (
|
_args[arg] = (
|
||||||
@ -1137,6 +1139,8 @@ async def _(
|
|||||||
buffer.write(
|
buffer.write(
|
||||||
"[ERROR] {}\n".format(e).replace(str(Path(__file__).parent.resolve()), "[]")
|
"[ERROR] {}\n".format(e).replace(str(Path(__file__).parent.resolve()), "[]")
|
||||||
)
|
)
|
||||||
|
if _args["debug"]:
|
||||||
|
raise e
|
||||||
|
|
||||||
sys.stdout = sys.__stdout__
|
sys.stdout = sys.__stdout__
|
||||||
sys.stderr = sys.__stderr__
|
sys.stderr = sys.__stderr__
|
||||||
|
Loading…
Reference in New Issue
Block a user