import{_ as s,r as a,o as l,c as r,b as e,d as t,a as o,e as i}from"./app-BrSLFMno.js";const c={},d=e("h2",{id:"installation",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#installation"},[e("span",null,[e("strong",null,"Installation")])])],-1),p=e("h3",{id:"conventional-deployment",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#conventional-deployment"},[e("span",null,[e("strong",null,"Conventional deployment")])])],-1),u={href:"https://git-scm.com/download/",target:"_blank",rel:"noopener noreferrer"},h=e("code",null,"Git",-1),m={href:"https://www.python.org/downloads/release/python-31010/",target:"_blank",rel:"noopener noreferrer"},v=e("code",null,"Python3.10+",-1),y=i(`
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
cd LiteyukiBot
pip install -r requirements.txt
python main.py
Tips
Recommended to use venv
to run Liteyuki to avoid dependency conflicts, you can use python -m venv .venv
to create a virtual environment, and then use .venv\\Scripts\\activate
to activate the virtual environment (use source .venv/bin/activate
to activate on Linux)
`,3),g={href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},k=e("code",null,"Docker",-1),_=e("li",null,[t("Clone project repo "),e("code",null,"git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1")],-1),f=e("li",null,[t("change directory "),e("code",null,"cd LiteyukiBot")],-1),b=e("li",null,[t("build image with "),e("code",null,"docker build -t liteyukibot .")],-1),w=e("li",null,[t("start container "),e("code",null,"docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot")],-1),L=i('Tips
For Windows, please use the absolute project directory /path/to/LiteyukiBot
instead of $(pwd)
If you have changed the port number, replace 20216
in 20216:20216
with your port number
',2),S={href:"https://timerainstarsky.github.io/TRSS_Liteyuki/",target:"_blank",rel:"noopener noreferrer"},x=i('- Minimum Windows system version:
Windows 10+
/ Windows Server 2019+
- Linux systems need to support Python 3.10+, with
Ubuntu 20.04+
recommended - CPU:
1 vCPU
and more(Bot is multi processes, the more cores, the better the performance) - Memory: Without other plugins, the Bot will occupy
300~500MB
, including processes like chromium
and node
. The memory occupied by other plugins depends on the specific plugins, and it is recommended to have more than 1GB
. - Storage: At least
1GB
of space is required.
Warning
If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt
to install dependencies, where path/to/python
is the path to your Python executable.
Warning
The update feature of Liteyuki depends on Git. If you have not installed Git and directly download the source code to run, you will not be able to use the update feature.
',5);function T(I,B){const n=a("ExternalLinkIcon");return l(),r("div",null,[d,p,e("ol",null,[e("li",null,[t("Install "),e("a",u,[h,o(n)]),t(" and "),e("a",m,[v,o(n)]),t(" environment")])]),y,e("ol",null,[e("li",null,[t("Install "),e("a",g,[k,o(n)])]),_,f,b,w]),L,e("p",null,[e("a",S,[t("TRSS_Liteyuki LiteyukiBot manage script"),o(n)]),t(", This feature is supported by TRSS and is not an official feature of LiteyukiBot. It is recommended to use Arch Linux.")]),x])}const C=s(c,[["render",T],["__file","install.html.vue"]]),R=JSON.parse('{"path":"/en/deploy/install.html","title":"Installation","lang":"en-US","frontmatter":{"title":"Installation","icon":"download","order":1,"category":"deployment","tag":["安装"],"description":"Installation Conventional deployment Install Git and Python3.10+ environment Tips Recommended to use venv to run Liteyuki to avoid dependency conflicts, you can use python -m ve...","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/deploy/install.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/deploy/install.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot"}],["meta",{"property":"og:title","content":"Installation"}],["meta",{"property":"og:description","content":"Installation Conventional deployment Install Git and Python3.10+ environment Tips Recommended to use venv to run Liteyuki to avoid dependency conflicts, you can use python -m ve..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-08-16T18:24:25.000Z"}],["meta",{"property":"article:tag","content":"安装"}],["meta",{"property":"article:modified_time","content":"2024-08-16T18:24:25.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Installation\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-16T18:24:25.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":2,"title":"Installation","slug":"installation","link":"#installation","children":[{"level":3,"title":"Conventional deployment","slug":"conventional-deployment","link":"#conventional-deployment","children":[]},{"level":3,"title":"Use docker","slug":"use-docker","link":"#use-docker","children":[]},{"level":3,"title":"Use TRSS Scripts","slug":"use-trss-scripts","link":"#use-trss-scripts","children":[]}]},{"level":2,"title":"Device requirements","slug":"device-requirements","link":"#device-requirements","children":[]}],"git":{"createdTime":1723832665000,"updatedTime":1723832665000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":1.26,"words":379},"filePathRelative":"en/deploy/install.md","localizedDate":"August 16, 2024","autoDesc":true}');export{C as comp,R as data};