mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 02:07:39 +08:00
fix: 取消了本地引用js
This commit is contained in:
parent
d8efa08d2f
commit
76359ba83e
@ -124,7 +124,6 @@ async def _(bot: T_Bot, event: T_MessageEvent):
|
|||||||
image_bytes = await template_to_pic(
|
image_bytes = await template_to_pic(
|
||||||
template_path=get_path("templates/stats.html", abs_path=True),
|
template_path=get_path("templates/stats.html", abs_path=True),
|
||||||
templates=templ,
|
templates=templ,
|
||||||
wait=1,
|
|
||||||
device_scale_factor=4,
|
device_scale_factor=4,
|
||||||
)
|
)
|
||||||
# await md.send_image(image_bytes, bot, event=event)
|
# await md.send_image(image_bytes, bot, event=event)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@
|
|||||||
let server_addr = "mc.liteyuki.icu";
|
|
||||||
let api_url = "https://api.mcstatus.io/v2/status/java/" + server_addr;
|
|
||||||
|
|
||||||
let server_status = document.getElementById("now-online");
|
|
||||||
|
|
||||||
fetch(api_url)
|
|
||||||
.then(response => {
|
|
||||||
console.log(response);
|
|
||||||
return response.json();
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
|
|
||||||
if (data.online){
|
|
||||||
server_status.textContent = "当前状态: 在线 " + data.players.online + " / " +data.players.max;
|
|
||||||
} else {
|
|
||||||
server_status.textContent = "当前状态: 服务器离线";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
@ -96,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="js/echarts.js"></script>
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@4.3.0/dist/echarts.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user