mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2025-01-31 15:41:36 +08:00
🪦不试试怎么逝世?
This commit is contained in:
parent
2ff550d991
commit
7347424c0b
@ -9,6 +9,7 @@ import asyncio
|
|||||||
from io import StringIO
|
from io import StringIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Annotated, Any, Union
|
from typing import Annotated, Any, Union
|
||||||
|
from builtins import ellipsis
|
||||||
|
|
||||||
# from nonebot import require
|
# from nonebot import require
|
||||||
|
|
||||||
@ -653,7 +654,7 @@ async def _(
|
|||||||
if arg in result.options[arg].args.keys()
|
if arg in result.options[arg].args.keys()
|
||||||
else result.options[arg].args
|
else result.options[arg].args
|
||||||
)
|
)
|
||||||
if (_vlu := result.options[arg].value) is None
|
if ((_vlu := result.options[arg].value) is None or isinstance(_vlu, ellipsis) )
|
||||||
else _vlu
|
else _vlu
|
||||||
)
|
)
|
||||||
# await musicreater_convert.finish(
|
# await musicreater_convert.finish(
|
||||||
@ -661,6 +662,8 @@ async def _(
|
|||||||
# )
|
# )
|
||||||
nonebot.logger.info(_args)
|
nonebot.logger.info(_args)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ((not superuser_permission) and (usr_id not in filesaves.keys())) or (
|
if ((not superuser_permission) and (usr_id not in filesaves.keys())) or (
|
||||||
superuser_permission
|
superuser_permission
|
||||||
and (
|
and (
|
||||||
|
@ -100,7 +100,8 @@ function createBarChart(title, percent, name) {
|
|||||||
diskDiv.setAttribute("class", "disk-info");
|
diskDiv.setAttribute("class", "disk-info");
|
||||||
diskDiv.style.marginBottom = "20px";
|
diskDiv.style.marginBottom = "20px";
|
||||||
diskDiv.innerHTML = `
|
diskDiv.innerHTML = `
|
||||||
<div class="disk-title">${title}</div>
|
<div class="disk-name">${name}</div>
|
||||||
|
<div class="disk-details">${title}</div>
|
||||||
<div class="disk-usage" style="width: ${percent}%"></div>
|
<div class="disk-usage" style="width: ${percent}%"></div>
|
||||||
`;
|
`;
|
||||||
updateDiskNameWidth(diskDiv);
|
updateDiskNameWidth(diskDiv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user