Files
app/docs
2024-08-17 02:24:25 +08:00
..
2024-08-17 02:24:25 +08:00
2024-08-17 02:24:25 +08:00
2024-08-17 00:39:49 +08:00
2024-08-17 02:24:25 +08:00
2024-08-12 05:26:36 +08:00
2024-08-17 02:24:25 +08:00
2024-03-28 10:50:19 +08:00
2024-06-16 23:33:58 +08:00
2024-08-05 06:00:07 +08:00
2024-08-05 06:00:07 +08:00
2024-08-17 02:24:25 +08:00
2024-04-20 04:10:20 +08:00

home, icon, title, heroImage, heroImageDark, bgImage, bgImageDark, bgImageStyle, heroText, tagline, actions, highlights, copyright
home icon title heroImage heroImageDark bgImage bgImageDark bgImageStyle heroText tagline actions highlights copyright
true home 首页 https://cdn.liteyuki.icu/static/svg/lylogo-full.svg https://cdn.liteyuki.icu/static/svg/lylogo-full-dark.svg
background-attachment
fixed
LiteyukiBot LiteyukiBot 轻雪机器人,综合性的机器人应用及管理框架
text icon link type
快速部署 rocket ./deployment/install.html primary
text icon link
使用手册 book ./usage/basic_command.html
header image bgImage bgImageDark bgImageStyle features
简洁至上 /assets/image/layout.svg https://theme-hope-assets.vuejs.press/bg/2-light.svg https://theme-hope-assets.vuejs.press/bg/2-dark.svg
background-repeat background-size
repeat initial
title icon details link
支持多种框架 robot 兼容nonebotmelobot等拥有良好的生态支持 https://nonebot.dev/
title icon details
便捷管理 plug 使用包管理器,便捷管理插件及资源包
title icon details link
主题支持 paint-brush 使用资源包对外观进行完全自定义 https://bot.liteyuki.icu/usage/resource_pack.html
title icon details link
国际化 globe 通过资源包支持多种语言 https://baike.baidu.com/item/i18n/6771940
title icon details link
简易使用 cog 无需繁琐前期过程,开箱即用 https://bot.liteyuki.icu/deployment/config.html
title icon details
超高性能 tachometer-alt 500个插件2s内启动
title icon details
滚动更新 cloud-download 让你的机器人保持最新提交
title icon details
开源项目 code 项目遵循MIT LICENCE开源欢迎各位的贡献
header image bgImage bgImageDark highlights
快速部署 /assets/image/box.svg https://theme-hope-assets.vuejs.press/bg/3-light.svg https://theme-hope-assets.vuejs.press/bg/3-dark.svg
title
安装 Git 及 Python3.10+
title details
使用 <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code> 以克隆项目至本地。 如果无法连接到GitHub可以使用 <code>git clone https://gitee.com/snowykami/LiteyukiBot --depth=1</code>。
title
使用 <code>cd LiteyukiBot</code> 切换到项目目录。
title details
使用 <code>pip install -r requirements.txt</code> 安装项目依赖。 如果你有多个 Python 环境,请使用 <code>pythonx -m pip install -r requirements.txt</code>。
title
使用 <code>python main.py</code> 启动项目。
© 2021-2024 SnowyKami All Rights Reserved
<script> // 定义全局变量来存储数据 let globalTotal = 0; let globalOnline = 0; // 从API获取数据并更新全局变量 function fetchAndUpdateData() { Promise.all([ fetch("https://api.liteyuki.icu/count").then(res => res.json()), fetch("https://api.liteyuki.icu/online").then(res => res.json()) ]) .then(([countRes, onlineRes]) => { globalTotal = countRes.register; globalOnline = onlineRes.online; }) .catch(err => { console.error("Error fetching data:", err); }); } // 更新页面显示,使用全局变量中的数据 function updatePageDisplay() { let countInfo = document.getElementById("count-info"); if (!countInfo) { let info = `
全球实例:${globalTotal}    当前在线:${globalOnline}
`; let mainDescription = document.querySelector("#main-description"); if (mainDescription) { mainDescription.insertAdjacentHTML('afterend', info); } } } // 初始调用更新数据 fetchAndUpdateData(); updatePageDisplay(); // 设置定时器,分别以不同频率调用更新数据和更新页面的函数 setInterval(fetchAndUpdateData, 10000); // 每10秒更新一次数据 setInterval(updatePageDisplay, 1000); // 每1秒更新一次页面显示 </script>