🪦不试试怎么逝世?

This commit is contained in:
EillesWan 2024-10-06 03:05:56 +08:00
parent 2ff550d991
commit 7347424c0b
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import asyncio
from io import StringIO
from pathlib import Path
from typing import Annotated, Any, Union
from builtins import ellipsis
# from nonebot import require
@ -653,7 +654,7 @@ async def _(
if arg in result.options[arg].args.keys()
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
)
# await musicreater_convert.finish(
@ -661,6 +662,8 @@ async def _(
# )
nonebot.logger.info(_args)
if ((not superuser_permission) and (usr_id not in filesaves.keys())) or (
superuser_permission
and (

View File

@ -100,7 +100,8 @@ function createBarChart(title, percent, name) {
diskDiv.setAttribute("class", "disk-info");
diskDiv.style.marginBottom = "20px";
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>
`;
updateDiskNameWidth(diskDiv);