Deploying to docs from @ LiteyukiStudio/LiteyukiBot@f548a07230 ๐Ÿš€

This commit is contained in:
2024-10-14 12:52:48 +00:00
parent 4330064e21
commit 027e56c3ec
109 changed files with 341 additions and 311 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{R as p}from"./chunks/theme.FB83Yfg3.js";import{R as o,a8 as u,a9 as l,aa as c,ab as f,ac as d,ad as m,ae as h,af as g,ag as A,ah as v,d as P,u as R,v as w,s as y,ai as C,aj as b,ak as E,al as S}from"./chunks/framework.jrU0lkHV.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function D(){return g(T)}function _(){let e=o,a;return A(t=>{let n=v(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp};
import{R as p}from"./chunks/theme.BUaAObPk.js";import{R as o,a8 as u,a9 as l,aa as c,ab as f,ac as d,ad as m,ae as h,af as g,ag as A,ah as v,d as P,u as R,v as w,s as y,ai as C,aj as b,ak as E,al as S}from"./chunks/framework.jrU0lkHV.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function D(){return g(T)}function _(){let e=o,a;return A(t=>{let n=v(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{g as c}from"./theme.FB83Yfg3.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.jrU0lkHV.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C};
import{g as c}from"./theme.BUaAObPk.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.jrU0lkHV.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C};

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"ๅฎ‰่ฃ…","description":"","frontmatter":{"title":"ๅฎ‰่ฃ…","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1728838977000}'),n={name:"deploy/install.md"};function l(o,i,h,p,r,d){return e(),a("div",null,i[0]||(i[0]=[t(`<h1 id="ๅฎ‰่ฃ…" tabindex="-1">ๅฎ‰่ฃ… <a class="header-anchor" href="#ๅฎ‰่ฃ…" aria-label="Permalink to &quot;ๅฎ‰่ฃ…&quot;">โ€‹</a></h1><h2 id="ๅธธ่ง„้ƒจ็ฝฒ" tabindex="-1"><strong>ๅธธ่ง„้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ๅธธ่ง„้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ๅธธ่ง„้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> ๅ’Œ <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> ็Žฏๅขƒ</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅ…‹้š†้กน็›ฎๅˆฐๆœฌๅœฐ๏ผŒ่ฝป้›ชไฝฟ็”จGit่ฟ›่กŒ็‰ˆๆœฌ็ฎก็†๏ผŒ่ฏฅๆญฅ้ชคไธบๅฟ…่ฆ้กน</span></span>
import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"ๅฎ‰่ฃ…","description":"","frontmatter":{"title":"ๅฎ‰่ฃ…","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1728910297000}'),n={name:"deploy/install.md"};function l(o,i,h,p,d,k){return e(),a("div",null,i[0]||(i[0]=[t(`<h1 id="ๅฎ‰่ฃ…" tabindex="-1">ๅฎ‰่ฃ… <a class="header-anchor" href="#ๅฎ‰่ฃ…" aria-label="Permalink to &quot;ๅฎ‰่ฃ…&quot;">โ€‹</a></h1><h2 id="ๅธธ่ง„้ƒจ็ฝฒ" tabindex="-1"><strong>ๅธธ่ง„้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ๅธธ่ง„้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ๅธธ่ง„้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> ๅ’Œ <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> ็Žฏๅขƒ</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅ…‹้š†้กน็›ฎๅˆฐๆœฌๅœฐ๏ผŒ่ฝป้›ชไฝฟ็”จGit่ฟ›่กŒ็‰ˆๆœฌ็ฎก็†๏ผŒ่ฏฅๆญฅ้ชคไธบๅฟ…่ฆ้กน</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/LiteyukiStudio/LiteyukiBot</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --depth=1</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ่‹ฅไฝ ไธ่ƒฝ่ฎฟ้—ฎGithub๏ผŒๅฏไปฅไฝฟ็”จLiteyuki้•œๅƒ๏ผšhttps://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅˆ‡ๆขๅˆฐBot็›ฎๅฝ•ไธ‹</span></span>
@ -15,4 +15,4 @@ import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pip</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -r</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> requirements.txt</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฏๅŠจBot</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><h2 id="ไฝฟ็”จdockerๆž„ๅปบ" tabindex="-1"><strong>ไฝฟ็”จDockerๆž„ๅปบ</strong> <a class="header-anchor" href="#ไฝฟ็”จdockerๆž„ๅปบ" aria-label="Permalink to &quot;**ไฝฟ็”จDockerๆž„ๅปบ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>ๅ…‹้š†้กน็›ฎ <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>่ฟ›ๅ…ฅ่ฝป้›ช็›ฎๅฝ• <code>cd LiteyukiBot</code></li><li>ๆž„ๅปบ้•œๅƒ <code>docker build -t liteyukibot .</code></li><li>ๅฏๅŠจๅฎนๅ™จ <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>Windows่ฏทไฝฟ็”จ้กน็›ฎ็ปๅฏน็›ฎๅฝ•<code>/path/to/LiteyukiBot</code>ไปฃๆ›ฟ<code>$(pwd)</code> <br> ่‹ฅไฝ ไฟฎๆ”นไบ†็ซฏๅฃๅท่ฏทๅฐ†<code>20216:20216</code>ไธญ็š„<code>20216</code>ๆ›ฟๆขไธบไฝ ็š„็ซฏๅฃๅท</p></div><h2 id="ไฝฟ็”จtrss-scripts้ƒจ็ฝฒ" tabindex="-1"><strong>ไฝฟ็”จTRSS Scripts้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ไฝฟ็”จtrss-scripts้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ไฝฟ็”จTRSS Scripts้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><p><a href="https://timerainstarsky.github.io/TRSS_Liteyuki/" target="_blank" rel="noreferrer">TRSS_Liteyuki่ฝป้›ชๆœบๅ™จไบบ็ฎก็†่„šๆœฌ</a> ๏ผŒ่ฏฅๅŠŸ่ƒฝ็”ฑTRSSๆไพ›ๆ”ฏๆŒ๏ผŒไธๆ˜ฏLiteyukiBotๅฎ˜ๆ–นๆไพ›็š„ๅŠŸ่ƒฝ๏ผŒๆŽจ่ไฝฟ็”จ<code>Arch Linux</code></p><h2 id="่ฃ…็ฝฎ่ฆๆฑ‚" tabindex="-1"><strong>่ฃ…็ฝฎ่ฆๆฑ‚</strong> <a class="header-anchor" href="#่ฃ…็ฝฎ่ฆๆฑ‚" aria-label="Permalink to &quot;**่ฃ…็ฝฎ่ฆๆฑ‚**&quot;">โ€‹</a></h2><ul><li>Windows็ณป็ปŸ็‰ˆๆœฌๆœ€ไฝŽ<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux็ณป็ปŸ่ฆๆ”ฏๆŒPython3.10+๏ผŒๆŽจ่<code>Ubuntu 20.04+</code>(<s>ๅˆซ็”จไฝ ้‚ฃb CentOS</s>)</li><li>CPU: ่‡ณๅฐ‘<code>1vCPU</code></li><li>ๅ†…ๅญ˜: Botๆ— ๅ…ถไป–ๆ’ไปถไผšๅ ็”จ<code>300~500MB</code>๏ผŒๅŒ…ๆ‹ฌ<code>chromium</code> ๅŠ <code>node</code>็ญ‰่ฟ›็จ‹๏ผŒๅ…ถไป–ๆ’ไปถๅ ็”จ่ง†ๅ…ทไฝ“ๆ’ไปถ่€Œๅฎš๏ผŒๅปบ่ฎฎ<code>1GB</code>ไปฅไธŠ</li><li>็กฌ็›˜: ่‡ณๅฐ‘<code>1GB</code>็ฉบ้—ด</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>ๅฆ‚ๆžœ่ฃ…็ฝฎไธŠๆœ‰ๅคšไธช็Žฏๅขƒ๏ผŒ่ฏทไฝฟ็”จ<code>path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ‰่ฃ…ไพ่ต–๏ผŒ<code>path/to/python</code> ไธบไฝ ็š„Pythonๅฏๆ‰ง่กŒๆ–‡ไปถ่ทฏๅพ„</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>่ฝป้›ช็š„ๆ›ดๆ–ฐๅŠŸ่ƒฝไพ่ต–Git๏ผŒๅฆ‚ๆžœไฝ ๆฒกๆœ‰ๅฎ‰่ฃ…Git็›ดๆŽฅไธ‹่ฝฝๆบไปฃ็ ่ฟ่กŒ๏ผŒไฝ ๅฐ†ๆ— ๆณ•ไฝฟ็”จๆ›ดๆ–ฐๅŠŸ่ƒฝ</p></div><h4 id="ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" tabindex="-1">ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ<a href="./fandq.html">็ญ”็–‘</a> <a class="header-anchor" href="#ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" aria-label="Permalink to &quot;ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ[็ญ”็–‘](./fandq)&quot;">โ€‹</a></h4>`,14)]))}const u=s(n,[["render",l]]);export{c as __pageData,u as default};
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><h2 id="ไฝฟ็”จdockerๆž„ๅปบ" tabindex="-1"><strong>ไฝฟ็”จDockerๆž„ๅปบ</strong> <a class="header-anchor" href="#ไฝฟ็”จdockerๆž„ๅปบ" aria-label="Permalink to &quot;**ไฝฟ็”จDockerๆž„ๅปบ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>ๅ…‹้š†้กน็›ฎ <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>่ฟ›ๅ…ฅ่ฝป้›ช็›ฎๅฝ• <code>cd LiteyukiBot</code></li><li>ๆž„ๅปบ้•œๅƒ <code>docker build -t liteyukibot .</code></li><li>ๅฏๅŠจๅฎนๅ™จ <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>Windows่ฏทไฝฟ็”จ้กน็›ฎ็ปๅฏน็›ฎๅฝ•<code>/path/to/LiteyukiBot</code>ไปฃๆ›ฟ<code>$(pwd)</code> <br> ่‹ฅไฝ ไฟฎๆ”นไบ†็ซฏๅฃๅท่ฏทๅฐ†<code>20216:20216</code>ไธญ็š„<code>20216</code>ๆ›ฟๆขไธบไฝ ็š„็ซฏๅฃๅท</p></div><h2 id="่ฃ…็ฝฎ่ฆๆฑ‚" tabindex="-1"><strong>่ฃ…็ฝฎ่ฆๆฑ‚</strong> <a class="header-anchor" href="#่ฃ…็ฝฎ่ฆๆฑ‚" aria-label="Permalink to &quot;**่ฃ…็ฝฎ่ฆๆฑ‚**&quot;">โ€‹</a></h2><ul><li>Windows็ณป็ปŸ็‰ˆๆœฌๆœ€ไฝŽ<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux็ณป็ปŸ่ฆๆ”ฏๆŒPython3.10+๏ผŒๆŽจ่<code>Ubuntu 20.04+</code>(<s>ๅˆซ็”จไฝ ้‚ฃb CentOS</s>)</li><li>CPU: ่‡ณๅฐ‘<code>1vCPU</code></li><li>ๅ†…ๅญ˜: Botๆ— ๅ…ถไป–ๆ’ไปถไผšๅ ็”จ<code>300~500MB</code>๏ผŒๅŒ…ๆ‹ฌ<code>chromium</code> ๅŠ <code>node</code>็ญ‰่ฟ›็จ‹๏ผŒๅ…ถไป–ๆ’ไปถๅ ็”จ่ง†ๅ…ทไฝ“ๆ’ไปถ่€Œๅฎš๏ผŒๅปบ่ฎฎ<code>1GB</code>ไปฅไธŠ</li><li>็กฌ็›˜: ่‡ณๅฐ‘<code>1GB</code>็ฉบ้—ด</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>ๅฆ‚ๆžœ่ฃ…็ฝฎไธŠๆœ‰ๅคšไธช็Žฏๅขƒ๏ผŒ่ฏทไฝฟ็”จ<code>path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ‰่ฃ…ไพ่ต–๏ผŒ<code>path/to/python</code> ไธบไฝ ็š„Pythonๅฏๆ‰ง่กŒๆ–‡ไปถ่ทฏๅพ„</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>่ฝป้›ช็š„ๆ›ดๆ–ฐๅŠŸ่ƒฝไพ่ต–Git๏ผŒๅฆ‚ๆžœไฝ ๆฒกๆœ‰ๅฎ‰่ฃ…Git็›ดๆŽฅไธ‹่ฝฝๆบไปฃ็ ่ฟ่กŒ๏ผŒไฝ ๅฐ†ๆ— ๆณ•ไฝฟ็”จๆ›ดๆ–ฐๅŠŸ่ƒฝ</p></div><h4 id="ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" tabindex="-1">ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ<a href="./fandq.html">็ญ”็–‘</a> <a class="header-anchor" href="#ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" aria-label="Permalink to &quot;ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ[็ญ”็–‘](./fandq)&quot;">โ€‹</a></h4>`,12)]))}const g=s(n,[["render",l]]);export{c as __pageData,g as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"ๅฎ‰่ฃ…","description":"","frontmatter":{"title":"ๅฎ‰่ฃ…","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1728838977000}'),n={name:"deploy/install.md"};function l(o,i,h,p,r,d){return e(),a("div",null,i[0]||(i[0]=[t(`<h1 id="ๅฎ‰่ฃ…" tabindex="-1">ๅฎ‰่ฃ… <a class="header-anchor" href="#ๅฎ‰่ฃ…" aria-label="Permalink to &quot;ๅฎ‰่ฃ…&quot;">โ€‹</a></h1><h2 id="ๅธธ่ง„้ƒจ็ฝฒ" tabindex="-1"><strong>ๅธธ่ง„้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ๅธธ่ง„้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ๅธธ่ง„้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> ๅ’Œ <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> ็Žฏๅขƒ</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅ…‹้š†้กน็›ฎๅˆฐๆœฌๅœฐ๏ผŒ่ฝป้›ชไฝฟ็”จGit่ฟ›่กŒ็‰ˆๆœฌ็ฎก็†๏ผŒ่ฏฅๆญฅ้ชคไธบๅฟ…่ฆ้กน</span></span>
import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"ๅฎ‰่ฃ…","description":"","frontmatter":{"title":"ๅฎ‰่ฃ…","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1728910297000}'),n={name:"deploy/install.md"};function l(o,i,h,p,d,k){return e(),a("div",null,i[0]||(i[0]=[t(`<h1 id="ๅฎ‰่ฃ…" tabindex="-1">ๅฎ‰่ฃ… <a class="header-anchor" href="#ๅฎ‰่ฃ…" aria-label="Permalink to &quot;ๅฎ‰่ฃ…&quot;">โ€‹</a></h1><h2 id="ๅธธ่ง„้ƒจ็ฝฒ" tabindex="-1"><strong>ๅธธ่ง„้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ๅธธ่ง„้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ๅธธ่ง„้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> ๅ’Œ <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> ็Žฏๅขƒ</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅ…‹้š†้กน็›ฎๅˆฐๆœฌๅœฐ๏ผŒ่ฝป้›ชไฝฟ็”จGit่ฟ›่กŒ็‰ˆๆœฌ็ฎก็†๏ผŒ่ฏฅๆญฅ้ชคไธบๅฟ…่ฆ้กน</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/LiteyukiStudio/LiteyukiBot</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --depth=1</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ่‹ฅไฝ ไธ่ƒฝ่ฎฟ้—ฎGithub๏ผŒๅฏไปฅไฝฟ็”จLiteyuki้•œๅƒ๏ผšhttps://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅˆ‡ๆขๅˆฐBot็›ฎๅฝ•ไธ‹</span></span>
@ -15,4 +15,4 @@ import{_ as s,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const c
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pip</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -r</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> requirements.txt</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฏๅŠจBot</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><h2 id="ไฝฟ็”จdockerๆž„ๅปบ" tabindex="-1"><strong>ไฝฟ็”จDockerๆž„ๅปบ</strong> <a class="header-anchor" href="#ไฝฟ็”จdockerๆž„ๅปบ" aria-label="Permalink to &quot;**ไฝฟ็”จDockerๆž„ๅปบ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>ๅ…‹้š†้กน็›ฎ <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>่ฟ›ๅ…ฅ่ฝป้›ช็›ฎๅฝ• <code>cd LiteyukiBot</code></li><li>ๆž„ๅปบ้•œๅƒ <code>docker build -t liteyukibot .</code></li><li>ๅฏๅŠจๅฎนๅ™จ <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>Windows่ฏทไฝฟ็”จ้กน็›ฎ็ปๅฏน็›ฎๅฝ•<code>/path/to/LiteyukiBot</code>ไปฃๆ›ฟ<code>$(pwd)</code> <br> ่‹ฅไฝ ไฟฎๆ”นไบ†็ซฏๅฃๅท่ฏทๅฐ†<code>20216:20216</code>ไธญ็š„<code>20216</code>ๆ›ฟๆขไธบไฝ ็š„็ซฏๅฃๅท</p></div><h2 id="ไฝฟ็”จtrss-scripts้ƒจ็ฝฒ" tabindex="-1"><strong>ไฝฟ็”จTRSS Scripts้ƒจ็ฝฒ</strong> <a class="header-anchor" href="#ไฝฟ็”จtrss-scripts้ƒจ็ฝฒ" aria-label="Permalink to &quot;**ไฝฟ็”จTRSS Scripts้ƒจ็ฝฒ**&quot;">โ€‹</a></h2><p><a href="https://timerainstarsky.github.io/TRSS_Liteyuki/" target="_blank" rel="noreferrer">TRSS_Liteyuki่ฝป้›ชๆœบๅ™จไบบ็ฎก็†่„šๆœฌ</a> ๏ผŒ่ฏฅๅŠŸ่ƒฝ็”ฑTRSSๆไพ›ๆ”ฏๆŒ๏ผŒไธๆ˜ฏLiteyukiBotๅฎ˜ๆ–นๆไพ›็š„ๅŠŸ่ƒฝ๏ผŒๆŽจ่ไฝฟ็”จ<code>Arch Linux</code></p><h2 id="่ฃ…็ฝฎ่ฆๆฑ‚" tabindex="-1"><strong>่ฃ…็ฝฎ่ฆๆฑ‚</strong> <a class="header-anchor" href="#่ฃ…็ฝฎ่ฆๆฑ‚" aria-label="Permalink to &quot;**่ฃ…็ฝฎ่ฆๆฑ‚**&quot;">โ€‹</a></h2><ul><li>Windows็ณป็ปŸ็‰ˆๆœฌๆœ€ไฝŽ<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux็ณป็ปŸ่ฆๆ”ฏๆŒPython3.10+๏ผŒๆŽจ่<code>Ubuntu 20.04+</code>(<s>ๅˆซ็”จไฝ ้‚ฃb CentOS</s>)</li><li>CPU: ่‡ณๅฐ‘<code>1vCPU</code></li><li>ๅ†…ๅญ˜: Botๆ— ๅ…ถไป–ๆ’ไปถไผšๅ ็”จ<code>300~500MB</code>๏ผŒๅŒ…ๆ‹ฌ<code>chromium</code> ๅŠ <code>node</code>็ญ‰่ฟ›็จ‹๏ผŒๅ…ถไป–ๆ’ไปถๅ ็”จ่ง†ๅ…ทไฝ“ๆ’ไปถ่€Œๅฎš๏ผŒๅปบ่ฎฎ<code>1GB</code>ไปฅไธŠ</li><li>็กฌ็›˜: ่‡ณๅฐ‘<code>1GB</code>็ฉบ้—ด</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>ๅฆ‚ๆžœ่ฃ…็ฝฎไธŠๆœ‰ๅคšไธช็Žฏๅขƒ๏ผŒ่ฏทไฝฟ็”จ<code>path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ‰่ฃ…ไพ่ต–๏ผŒ<code>path/to/python</code> ไธบไฝ ็š„Pythonๅฏๆ‰ง่กŒๆ–‡ไปถ่ทฏๅพ„</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>่ฝป้›ช็š„ๆ›ดๆ–ฐๅŠŸ่ƒฝไพ่ต–Git๏ผŒๅฆ‚ๆžœไฝ ๆฒกๆœ‰ๅฎ‰่ฃ…Git็›ดๆŽฅไธ‹่ฝฝๆบไปฃ็ ่ฟ่กŒ๏ผŒไฝ ๅฐ†ๆ— ๆณ•ไฝฟ็”จๆ›ดๆ–ฐๅŠŸ่ƒฝ</p></div><h4 id="ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" tabindex="-1">ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ<a href="./fandq.html">็ญ”็–‘</a> <a class="header-anchor" href="#ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" aria-label="Permalink to &quot;ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ[็ญ”็–‘](./fandq)&quot;">โ€‹</a></h4>`,14)]))}const u=s(n,[["render",l]]);export{c as __pageData,u as default};
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><h2 id="ไฝฟ็”จdockerๆž„ๅปบ" tabindex="-1"><strong>ไฝฟ็”จDockerๆž„ๅปบ</strong> <a class="header-anchor" href="#ไฝฟ็”จdockerๆž„ๅปบ" aria-label="Permalink to &quot;**ไฝฟ็”จDockerๆž„ๅปบ**&quot;">โ€‹</a></h2><ol><li>ๅฎ‰่ฃ… <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>ๅ…‹้š†้กน็›ฎ <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>่ฟ›ๅ…ฅ่ฝป้›ช็›ฎๅฝ• <code>cd LiteyukiBot</code></li><li>ๆž„ๅปบ้•œๅƒ <code>docker build -t liteyukibot .</code></li><li>ๅฏๅŠจๅฎนๅ™จ <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>Windows่ฏทไฝฟ็”จ้กน็›ฎ็ปๅฏน็›ฎๅฝ•<code>/path/to/LiteyukiBot</code>ไปฃๆ›ฟ<code>$(pwd)</code> <br> ่‹ฅไฝ ไฟฎๆ”นไบ†็ซฏๅฃๅท่ฏทๅฐ†<code>20216:20216</code>ไธญ็š„<code>20216</code>ๆ›ฟๆขไธบไฝ ็š„็ซฏๅฃๅท</p></div><h2 id="่ฃ…็ฝฎ่ฆๆฑ‚" tabindex="-1"><strong>่ฃ…็ฝฎ่ฆๆฑ‚</strong> <a class="header-anchor" href="#่ฃ…็ฝฎ่ฆๆฑ‚" aria-label="Permalink to &quot;**่ฃ…็ฝฎ่ฆๆฑ‚**&quot;">โ€‹</a></h2><ul><li>Windows็ณป็ปŸ็‰ˆๆœฌๆœ€ไฝŽ<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux็ณป็ปŸ่ฆๆ”ฏๆŒPython3.10+๏ผŒๆŽจ่<code>Ubuntu 20.04+</code>(<s>ๅˆซ็”จไฝ ้‚ฃb CentOS</s>)</li><li>CPU: ่‡ณๅฐ‘<code>1vCPU</code></li><li>ๅ†…ๅญ˜: Botๆ— ๅ…ถไป–ๆ’ไปถไผšๅ ็”จ<code>300~500MB</code>๏ผŒๅŒ…ๆ‹ฌ<code>chromium</code> ๅŠ <code>node</code>็ญ‰่ฟ›็จ‹๏ผŒๅ…ถไป–ๆ’ไปถๅ ็”จ่ง†ๅ…ทไฝ“ๆ’ไปถ่€Œๅฎš๏ผŒๅปบ่ฎฎ<code>1GB</code>ไปฅไธŠ</li><li>็กฌ็›˜: ่‡ณๅฐ‘<code>1GB</code>็ฉบ้—ด</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>ๅฆ‚ๆžœ่ฃ…็ฝฎไธŠๆœ‰ๅคšไธช็Žฏๅขƒ๏ผŒ่ฏทไฝฟ็”จ<code>path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ‰่ฃ…ไพ่ต–๏ผŒ<code>path/to/python</code> ไธบไฝ ็š„Pythonๅฏๆ‰ง่กŒๆ–‡ไปถ่ทฏๅพ„</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>่ฝป้›ช็š„ๆ›ดๆ–ฐๅŠŸ่ƒฝไพ่ต–Git๏ผŒๅฆ‚ๆžœไฝ ๆฒกๆœ‰ๅฎ‰่ฃ…Git็›ดๆŽฅไธ‹่ฝฝๆบไปฃ็ ่ฟ่กŒ๏ผŒไฝ ๅฐ†ๆ— ๆณ•ไฝฟ็”จๆ›ดๆ–ฐๅŠŸ่ƒฝ</p></div><h4 id="ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" tabindex="-1">ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ<a href="./fandq.html">็ญ”็–‘</a> <a class="header-anchor" href="#ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ็ญ”็–‘" aria-label="Permalink to &quot;ๅ…ถไป–้—ฎ้ข˜่ฏท็งปๆญฅ่‡ณ[็ญ”็–‘](./fandq)&quot;">โ€‹</a></h4>`,12)]))}const g=s(n,[["render",l]]);export{c as __pageData,g as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,18 @@
import{_ as t,c as i,a7 as a,o as s}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),o={name:"en/deploy/install.md"};function n(l,e,r,c,d,h){return s(),i("div",null,e[0]||(e[0]=[a(`<h1 id="install" tabindex="-1">Install <a class="header-anchor" href="#install" aria-label="Permalink to &quot;Install&quot;">โ€‹</a></h1><h2 id="normal-installation" tabindex="-1"><strong>Normal Installation</strong> <a class="header-anchor" href="#normal-installation" aria-label="Permalink to &quot;**Normal Installation**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> and <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> Environment.</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Clone the project</span></span>
import{_ as i,c as s,a7 as a,o as t}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1728910297000}'),n={name:"en/deploy/install.md"};function l(o,e,r,p,d,h){return t(),s("div",null,e[0]||(e[0]=[a(`<h1 id="install" tabindex="-1">Install <a class="header-anchor" href="#install" aria-label="Permalink to &quot;Install&quot;">โ€‹</a></h1><h2 id="normal-installation" tabindex="-1"><strong>Normal Installation</strong> <a class="header-anchor" href="#normal-installation" aria-label="Permalink to &quot;**Normal Installation**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> and <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> Environment.</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Clone Repo</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/LiteyukiStudio/LiteyukiBot</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --depth=1</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># change directory</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Change directory</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> LiteyukiBot</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># install dependencies</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Create virtual environment</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -m</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Activate virtual environment</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">venv</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">Scripts</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">activate</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # Windows</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">source</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv/bin/activate</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # Linux</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Install dependencies</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pip</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -r</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> requirements.txt</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># start the bot!</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use <code>python -m venv .venv</code> to create a virtual environment, and then use <code>.venv\\Scripts\\activate</code> to activate the virtual environment (use <code>source .venv/bin/activate</code> to activate on Linux).</p></div><h2 id="run-with-docker" tabindex="-1"><strong>Run with Docker</strong> <a class="header-anchor" href="#run-with-docker" aria-label="Permalink to &quot;**Run with Docker**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>Clone Repo <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>Change directory <code>cd LiteyukiBot</code></li><li>Build docker image <code>docker build -t liteyukibot .</code></li><li>Run container <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>If you are using Windows, please use the absolute project directory <code>/path/to/LiteyukiBot</code> instead of <code>$&amp;#40;pwd&amp;#41;</code> <br> If you have modified the port number, please replace <code>20216:20216</code> with your port number</p></div><h2 id="use-trss-script" tabindex="-1"><strong>Use TRSS Script</strong> <a class="header-anchor" href="#use-trss-script" aria-label="Permalink to &quot;**Use TRSS Script**&quot;">โ€‹</a></h2><p><a href="https://timerainstarsky.github.io/TRSS_Liteyuki/" target="_blank" rel="noreferrer">TRSS_Liteyuki Management Script</a>, which provides a more convenient way to manage LiteyukiBot, recommended to use <code>Arch Linux</code></p><h2 id="device-requirements" tabindex="-1"><strong>Device Requirements</strong> <a class="header-anchor" href="#device-requirements" aria-label="Permalink to &quot;**Device Requirements**&quot;">โ€‹</a></h2><ul><li>Windows system version minimum <code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux system requires Python3.10+, recommended <code>Ubuntu 20.04+</code></li><li>CPU: at least <code>1vCPU</code></li><li>Memory: Bot without other plugins will occupy <code>300~500MB</code>, including <code>chromium</code> and <code>node</code> processes, other plugins depend on specific plugins, recommended <code>1GB</code> or more</li><li>Disk: at least <code>1GB</code> of space</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>If there are multiple environments on the device, please use <code>path/to/python -m pip install -r requirements.txt</code> to install dependencies, <code>path/to/python</code> is the path to your Python executable</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>Liteyuki&#39;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</p></div><h4 id="for-other-questions-please-refer-to-faq" tabindex="-1">For other questions, please refer to <a href="./fandq.html">FAQ</a> <a class="header-anchor" href="#for-other-questions-please-refer-to-faq" aria-label="Permalink to &quot;For other questions, please refer to [FAQ](./fandq)&quot;">โ€‹</a></h4>`,15)]))}const k=t(o,[["render",n]]);export{u as __pageData,k as default};
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Run Liteyuki</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use <code>python -m venv .venv</code> to create a virtual environment, and then use <code>.venv\\Scripts\\activate</code> to activate the virtual environment (use <code>source .venv/bin/activate</code> to activate on Linux).</p></div><h2 id="run-with-docker" tabindex="-1"><strong>Run with Docker</strong> <a class="header-anchor" href="#run-with-docker" aria-label="Permalink to &quot;**Run with Docker**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>Clone Repo <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>Change directory <code>cd LiteyukiBot</code></li><li>Build docker image <code>docker build -t liteyukibot .</code></li><li>Run container <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>If you are using Windows, please use the absolute project directory <code>/path/to/LiteyukiBot</code> instead of <code>$&amp;#40;pwd&amp;#41;</code> <br> If you have modified the port number, please replace <code>20216:20216</code> with your port number</p></div><h2 id="device-requirements" tabindex="-1"><strong>Device Requirements</strong> <a class="header-anchor" href="#device-requirements" aria-label="Permalink to &quot;**Device Requirements**&quot;">โ€‹</a></h2><ul><li>Windows system version minimum <code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux system requires Python3.10+, recommended <code>Ubuntu 20.04+</code></li><li>CPU: at least <code>1vCPU</code></li><li>Memory: Bot without other plugins will occupy <code>300~500MB</code>, including <code>chromium</code> and <code>node</code> processes, other plugins depend on specific plugins, recommended <code>1GB</code> or more</li><li>Disk: at least <code>1GB</code> of space</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>If there are multiple environments on the device, please use <code>path/to/python -m pip install -r requirements.txt</code> to install dependencies, <code>path/to/python</code> is the path to your Python executable</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>Liteyuki&#39;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</p></div><h4 id="for-other-questions-please-refer-to-faq" tabindex="-1">For other questions, please refer to <a href="./fandq.html">FAQ</a> <a class="header-anchor" href="#for-other-questions-please-refer-to-faq" aria-label="Permalink to &quot;For other questions, please refer to [FAQ](./fandq)&quot;">โ€‹</a></h4>`,13)]))}const u=i(n,[["render",l]]);export{k as __pageData,u as default};

View File

@ -1,8 +1,18 @@
import{_ as t,c as i,a7 as a,o as s}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),o={name:"en/deploy/install.md"};function n(l,e,r,c,d,h){return s(),i("div",null,e[0]||(e[0]=[a(`<h1 id="install" tabindex="-1">Install <a class="header-anchor" href="#install" aria-label="Permalink to &quot;Install&quot;">โ€‹</a></h1><h2 id="normal-installation" tabindex="-1"><strong>Normal Installation</strong> <a class="header-anchor" href="#normal-installation" aria-label="Permalink to &quot;**Normal Installation**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> and <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> Environment.</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Clone the project</span></span>
import{_ as i,c as s,a7 as a,o as t}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1728910297000}'),n={name:"en/deploy/install.md"};function l(o,e,r,p,d,h){return t(),s("div",null,e[0]||(e[0]=[a(`<h1 id="install" tabindex="-1">Install <a class="header-anchor" href="#install" aria-label="Permalink to &quot;Install&quot;">โ€‹</a></h1><h2 id="normal-installation" tabindex="-1"><strong>Normal Installation</strong> <a class="header-anchor" href="#normal-installation" aria-label="Permalink to &quot;**Normal Installation**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://git-scm.com/download/" target="_blank" rel="noreferrer"><code>Git</code></a> and <a href="https://www.python.org/downloads/release/python-31010/" target="_blank" rel="noreferrer"><code>Python3.10+</code></a> Environment.</li></ol><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Clone Repo</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/LiteyukiStudio/LiteyukiBot</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --depth=1</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># change directory</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Change directory</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> LiteyukiBot</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># install dependencies</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Create virtual environment</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -m</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Activate virtual environment</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">venv</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">Scripts</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\\</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">activate</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # Windows</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">source</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> venv/bin/activate</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # Linux</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Install dependencies</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pip</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -r</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> requirements.txt</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># start the bot!</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use <code>python -m venv .venv</code> to create a virtual environment, and then use <code>.venv\\Scripts\\activate</code> to activate the virtual environment (use <code>source .venv/bin/activate</code> to activate on Linux).</p></div><h2 id="run-with-docker" tabindex="-1"><strong>Run with Docker</strong> <a class="header-anchor" href="#run-with-docker" aria-label="Permalink to &quot;**Run with Docker**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>Clone Repo <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>Change directory <code>cd LiteyukiBot</code></li><li>Build docker image <code>docker build -t liteyukibot .</code></li><li>Run container <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>If you are using Windows, please use the absolute project directory <code>/path/to/LiteyukiBot</code> instead of <code>$&amp;#40;pwd&amp;#41;</code> <br> If you have modified the port number, please replace <code>20216:20216</code> with your port number</p></div><h2 id="use-trss-script" tabindex="-1"><strong>Use TRSS Script</strong> <a class="header-anchor" href="#use-trss-script" aria-label="Permalink to &quot;**Use TRSS Script**&quot;">โ€‹</a></h2><p><a href="https://timerainstarsky.github.io/TRSS_Liteyuki/" target="_blank" rel="noreferrer">TRSS_Liteyuki Management Script</a>, which provides a more convenient way to manage LiteyukiBot, recommended to use <code>Arch Linux</code></p><h2 id="device-requirements" tabindex="-1"><strong>Device Requirements</strong> <a class="header-anchor" href="#device-requirements" aria-label="Permalink to &quot;**Device Requirements**&quot;">โ€‹</a></h2><ul><li>Windows system version minimum <code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux system requires Python3.10+, recommended <code>Ubuntu 20.04+</code></li><li>CPU: at least <code>1vCPU</code></li><li>Memory: Bot without other plugins will occupy <code>300~500MB</code>, including <code>chromium</code> and <code>node</code> processes, other plugins depend on specific plugins, recommended <code>1GB</code> or more</li><li>Disk: at least <code>1GB</code> of space</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>If there are multiple environments on the device, please use <code>path/to/python -m pip install -r requirements.txt</code> to install dependencies, <code>path/to/python</code> is the path to your Python executable</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>Liteyuki&#39;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</p></div><h4 id="for-other-questions-please-refer-to-faq" tabindex="-1">For other questions, please refer to <a href="./fandq.html">FAQ</a> <a class="header-anchor" href="#for-other-questions-please-refer-to-faq" aria-label="Permalink to &quot;For other questions, please refer to [FAQ](./fandq)&quot;">โ€‹</a></h4>`,15)]))}const k=t(o,[["render",n]]);export{u as __pageData,k as default};
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Run Liteyuki</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">python</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> main.py</span></span></code></pre></div><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use <code>python -m venv .venv</code> to create a virtual environment, and then use <code>.venv\\Scripts\\activate</code> to activate the virtual environment (use <code>source .venv/bin/activate</code> to activate on Linux).</p></div><h2 id="run-with-docker" tabindex="-1"><strong>Run with Docker</strong> <a class="header-anchor" href="#run-with-docker" aria-label="Permalink to &quot;**Run with Docker**&quot;">โ€‹</a></h2><ol><li>Install <a href="https://docs.docker.com/get-docker/" target="_blank" rel="noreferrer"><code>Docker</code></a></li><li>Clone Repo <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>Change directory <code>cd LiteyukiBot</code></li><li>Build docker image <code>docker build -t liteyukibot .</code></li><li>Run container <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><div class="tip custom-block github-alert"><p class="custom-block-title">TIP</p><p>If you are using Windows, please use the absolute project directory <code>/path/to/LiteyukiBot</code> instead of <code>$&amp;#40;pwd&amp;#41;</code> <br> If you have modified the port number, please replace <code>20216:20216</code> with your port number</p></div><h2 id="device-requirements" tabindex="-1"><strong>Device Requirements</strong> <a class="header-anchor" href="#device-requirements" aria-label="Permalink to &quot;**Device Requirements**&quot;">โ€‹</a></h2><ul><li>Windows system version minimum <code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux system requires Python3.10+, recommended <code>Ubuntu 20.04+</code></li><li>CPU: at least <code>1vCPU</code></li><li>Memory: Bot without other plugins will occupy <code>300~500MB</code>, including <code>chromium</code> and <code>node</code> processes, other plugins depend on specific plugins, recommended <code>1GB</code> or more</li><li>Disk: at least <code>1GB</code> of space</li></ul><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>If there are multiple environments on the device, please use <code>path/to/python -m pip install -r requirements.txt</code> to install dependencies, <code>path/to/python</code> is the path to your Python executable</p></div><div class="warning custom-block github-alert"><p class="custom-block-title">WARNING</p><p>Liteyuki&#39;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</p></div><h4 id="for-other-questions-please-refer-to-faq" tabindex="-1">For other questions, please refer to <a href="./fandq.html">FAQ</a> <a class="header-anchor" href="#for-other-questions-please-refer-to-faq" aria-label="Permalink to &quot;For other questions, please refer to [FAQ](./fandq)&quot;">โ€‹</a></h4>`,13)]))}const u=i(n,[["render",l]]);export{k as __pageData,u as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More