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-gnbtOU7f.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(`
# Clone the project locally, --depth=1 to reduce the size of the cloned repository, this project updates depend on Git
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
# change the directory to the project root
cd LiteyukiBot
# install the project dependencies
pip install -r requirements.txt
# start bot
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)

Use docker

`,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

Use TRSS Scripts

',2),S={href:"https://timerainstarsky.github.io/TRSS_Liteyuki/",target:"_blank",rel:"noopener noreferrer"},x=i('

Device requirements

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.

For other issues, please go to Q&A

',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};