7 |
8 |
9 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/components/Tabs.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LiteyukiStudio/LiteyukiBot/1ae45808fd3021c0920771802627acd85a2edea1/docs/components/Tabs.vue
--------------------------------------------------------------------------------
/docs/components/ToggleSwitch.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/components/TryLiteyukiWindow.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docs/components/scripts/const.ts:
--------------------------------------------------------------------------------
1 | export const platformBaseURL = "https://github.com/"
2 | export const repoPath = "LiteyukiStudio/LiteyukiBot"
3 |
4 | export const repoURL = `${platformBaseURL}${repoPath}`
--------------------------------------------------------------------------------
/docs/en/deploy/fandq.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: FAQ
3 | order: 3
4 | ---
5 | # FAQ
6 |
7 | ## **Frequently Asked Questions**
8 |
9 | - There are too many python interpreters on my computer, how do I know which one to use?
10 | - You can specify which python interpreter to use by using the full path to the python executable, for example, `/path/to/python main.py`
11 | - Use virtual environments to avoid conflicts between different python interpreters
12 |
13 | - Update Liteyuki failed, error `InvalidGitRepositoryError`
14 | - Please install `Git` correctly and deploy Liteyuki using cloning instead of direct download
15 |
16 | - How to log in to chat platforms?
17 | - Some plugins provide the ability to log in to specific platforms, for example, using the NoneBot plugin to log in to supported adapter platforms
18 |
19 | - `Playwright` installation failed
20 | - Enter `playwright install` to install the browser
21 |
22 | - Some plugins report errors after installation and cannot be started
23 | - Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact,
24 | and if the problem persists, please contact the plugin author or start Liteyuki in safe mode `safe_mode: true`.
25 | In safe mode, you can use `npm uninstall` to uninstall problematic plugins
26 |
27 | ## Other questions
28 |
29 | - Join chat group[775840726](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SzmDYbfR6jY94o9KFNon7AwelRyI6M_u&authKey=ygeBdEmdFNyCWuNR4w0M1M8%2B5oDg7k%2FDfN0tzBkYcnbB%2FGHNnlVEnCIGbdftsnn7&noverify=0&group_code=775840726)
30 | - If you don't have a QQ account, you can [submit an issue on GitHub](https://github.com/LiteyukiStudio/LiteyukiBot/issues/new?assignees=&labels=&projects=&template=%E9%97%AE%E9%A2%98%E5%8F%8D%E9%A6%88.md&title=)
31 |
--------------------------------------------------------------------------------
/docs/en/deploy/install.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Install
3 | order: 1
4 | ---
5 | # Install
6 |
7 | ## **Normal Installation**
8 |
9 | 1. Install [`Git`](https://git-scm.com/download/) and [`Python3.10+`](https://www.python.org/downloads/release/python-31010/) Environment.
10 |
11 | ```bash
12 | # Clone Repo
13 | git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
14 |
15 | # Change directory
16 | cd LiteyukiBot
17 |
18 | # Create virtual environment
19 | python -m venv venv
20 |
21 | # Activate virtual environment
22 | .\venv\Scripts\activate # Windows
23 | source venv/bin/activate # Linux
24 |
25 | # Install dependencies
26 | pip install -r requirements.txt
27 |
28 | # Run Liteyuki
29 | python main.py
30 | ```
31 |
32 | > [!tip]
33 | > It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts.
34 | > You can use `python -m venv .venv` to create a virtual environment, and then use `.venv\Scripts\activate` to activate the virtual environment
35 | > (use `source .venv/bin/activate` to activate on Linux).
36 |
37 |
38 | ## **Run with Docker**
39 |
40 | ```bash
41 | docker pull ghcr.io/liteyukistudio/liteyukibot:latest # Nightly build
42 | ```
43 |
44 | > [!tip]
45 | > If you are using Windows, please use the absolute project directory `/path/to/LiteyukiBot` instead of `$(pwd)`
46 | > If you have modified the port number, please replace `20216:20216` with your port number
47 |
48 |
49 | ## **Device Requirements**
50 | - Windows system version minimum `Windows10+`/`Windows Server 2019+`
51 | - Linux system requires Python3.10+, recommended `Ubuntu 20.04+`
52 | - CPU: at least `1vCPU`
53 | - Memory: Bot without other plugins will occupy `300~500MB`, including `chromium` and `node` processes, other plugins depend on specific plugins, recommended `1GB` or more
54 | - Disk: at least `1GB` of space
55 |
56 | > [!warning]
57 | > If there are multiple environments on the device, please use `path/to/python -m pip install -r requirements.txt` to install dependencies, `path/to/python` is the path to your Python executable
58 |
59 | > [!warning]
60 | > Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function
61 |
62 | #### For other questions, please refer to [FAQ](./fandq)
--------------------------------------------------------------------------------
/docs/en/dev/best_practices.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Best Practices
3 | order: 10
4 | ---
5 |
6 | # Best Practices
7 |
8 | ## Bot applications
9 | - [LiteyukiBot](https://github.com/LiteyukiStudio/LiteyukiBot): Liteyuki Official Bot
10 | - [LiteyukiBot-TriM](https://github.com/TriM-Organization/LiteyukiBot-TriM): TriM Official Custom Liteyuki Bot
11 | - [Liteyuki Marsho](https://git.liteyuki.icu/LiteyukiStudio/marsho-alpha): A cute cat girl bot based on Liteyuki and the github model
12 |
13 | ## plugins
14 | - [liteyukibot-plugin-nonebot](https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot): Liteyuki Bot NoneBot plugin, allowing Liteyuki to support NoneBot
15 | - [nonebot-plugin-liteyukibot](https://github.com/LiteyukiStudio/nonebot-plugin-liteyukibot): NoneBot plugin, allowing NoneBot to support Liteyuki
16 |
17 | ## Others
18 | - [liteyuki starmap](https://starmap.liteyuki.icu): Liteyuki official star map, showing all instances of Liteyuki and their location distribution
19 | - [TRSS_Liteyuki](https://timerainstarsky.github.io/TRSS_Liteyuki/): LiteyukiBot management script
20 | - [litedoc](https://github.com/LiteyukiStudio/litedoc): Liteyuki API documentation generator
21 | - liteyukibot-api (closed source): Liteyuki Bot stat interface
--------------------------------------------------------------------------------
/docs/en/dev/lyfunc.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Liteyuki Function
3 | order: 2
4 | ---
5 |
6 | # **轻雪函数**
7 |
8 | 轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.
9 |
10 | ### **函数文件**
11 |
12 | 函数文件放在资源包的`functions`目录下,文件名以`.mcfunction` `.lyfunction` `.lyf`结尾,例如`test.mcfunction`,文件内容为一系列的命令,每行一个命令,支持单行注释`#`(编辑时的语法高亮可采取`shell`格式),例如:
13 |
14 | ```shell
15 | # 在发信器输出"hello world"
16 | cmd echo hello world
17 |
18 | # 如果你想同时输出多行内容可以尝试换行符(Python格式)
19 | cmd echo hello world\nLiteyuki bot
20 | ```
21 |
22 | 也支持句末注释,例如:
23 | ```shell
24 | cmd echo hello world # 输出"hello world"
25 | ```
26 |
27 | ### **命令文档**
28 |
29 | ```shell
30 | var [var2=value2] ... # 定义变量
31 | cmd # 在设备上执行命令
32 | api [var=value...] # 调用Bot API
33 | function # 调用函数,可递归
34 | sleep