Files
app/docs/en
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 02:24:25 +08:00
2024-08-17 02:24:25 +08:00
2024-08-17 02:24:25 +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 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 A high-performance, easy-to-use chatbot framework and application
text icon link type
Get Started rocket ./deployment/install.html primary
text icon link
Usage book ./usage/basic_command.html
header image bgImage bgImageDark bgImageStyle features
Simple and Efficient /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
Multi-Framework Support robot Compatible with nonebot, melobot, etc., with good ecological support https://nonebot.dev/
title icon details
Convenient Management plug Use package manager to manage plugins and resource packs
title icon details link
Custom Themes Support paint-brush Fully customize the appearance with resource packs https://bot.liteyuki.icu/usage/resource_pack.html
title icon details link
i18n globe Support multiple languages through resource packs https://baike.baidu.com/item/i18n/6771940
title icon details link
Easy to Use cog No need for cumbersome pre-processes, ready to use https://bot.liteyuki.icu/deployment/config.html
title icon details
High Performance tachometer-alt 500 plugins, start within 2s
title icon details
Rolling Update cloud-download Keep your bot up to date
title icon details
OpenSource code MIT LICENCE open source project, welcome your contribution
header image bgImage bgImageDark highlights
Quick Start /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
Install Git and Python3.10+ environment
title
Use <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code> to clone the project locally
title
Use <code>cd LiteyukiBot</code> to change the directory to the project root
title details
Use <code>pip install -r requirements.txt</code> install the project dependencies If you have multiple Python environments, please use <code>pythonx -m pip install -r requirements.txt</code>.
title
Start bot with <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 = `
Instances: ${globalTotal}    Online: ${globalOnline}
`; let mainDescription = document.querySelector("#main-description"); if (mainDescription) { mainDescription.insertAdjacentHTML('afterend', info); } } } // 初始调用更新数据 fetchAndUpdateData(); updatePageDisplay(); // 设置定时器,分别以不同频率调用更新数据和更新页面的函数 setInterval(fetchAndUpdateData, 10000); // 每10秒更新一次数据 setInterval(updatePageDisplay, 1000); // 每1秒更新一次页面显示 </script>