mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 06:20:56 +00:00
Deploying to docs from @ LiteyukiStudio/LiteyukiBot@7bf94a15c8 ๐
This commit is contained in:
@ -1 +1 @@
|
||||
import{R as p}from"./chunks/theme.CoOFLGSO.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.DsuJY84h.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};
|
1
assets/chunks/@localSearchIndexen.B9rukqki.js
Normal file
1
assets/chunks/@localSearchIndexen.B9rukqki.js
Normal file
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
1
assets/chunks/@localSearchIndexroot.CnccKATG.js
Normal file
1
assets/chunks/@localSearchIndexroot.CnccKATG.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{g as c}from"./theme.CoOFLGSO.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.DsuJY84h.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
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
3
assets/deploy_fandq.md.DYuQyOrf.js
Normal file
3
assets/deploy_fandq.md.DYuQyOrf.js
Normal file
@ -0,0 +1,3 @@
|
||||
import{_ as o,c as t,a7 as a,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"็ญ็","description":"","frontmatter":{"title":"็ญ็","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1729881298000}'),i={name:"deploy/fandq.md"};function d(n,e,r,p,c,s){return l(),t("div",null,e[0]||(e[0]=[a(`<h1 id="็ญ็" tabindex="-1">็ญ็ <a class="header-anchor" href="#็ญ็" aria-label="Permalink to "็ญ็"">โ</a></h1><h2 id="ๅธธ่ง้ฎ้ข" tabindex="-1"><strong>ๅธธ่ง้ฎ้ข</strong> <a class="header-anchor" href="#ๅธธ่ง้ฎ้ข" aria-label="Permalink to "**ๅธธ่ง้ฎ้ข**"">โ</a></h2><ul><li><p>่ฎพๅคไธPython็ฏๅขๅคชไนฑไบ๏ผpipๅpythonไธๅฏนๅบๆไนๅ๏ผ</p><ul><li>่ฏทไฝฟ็จ<code>/path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ่ฃ
ไพ่ต๏ผ ็ถๅ็จ<code>/path/to/python main.py</code>ๆฅๅฏๅจBot๏ผ ๅ
ถไธญ<code>/path/to/python</code>ๆฏไฝ ่ฆ็จๆฅ่ฟ่กBot็ๅฏๆง่กๆไปถ</li></ul></li><li><p>ๆดๆฐ่ฝป้ชๅคฑ่ดฅ๏ผๆฅ้<code>InvalidGitRepositoryError</code></p><ul><li>่ฏทๆญฃ็กฎๅฎ่ฃ
<code>Git</code>๏ผๅนถไฝฟ็จๅ
้่้็ดๆฅไธ่ฝฝ็ๆนๅผ้จ็ฝฒ่ฝป้ช</li></ul></li><li><p>ๆไนๅฏนๆฅ่ๅคฉๅนณๅฐ๏ผ</p><ul><li>Bot้จๅๆไปถๆไพไบๅฏนๆฅ็นๅฎๅนณๅฐ็่ฝๅ๏ผไพๅฆไฝฟ็จNoneBotๆไปถๅฏๅฏนๆฅๆฏๆ็้้
ๅจๅนณๅฐ</li></ul></li><li><p><code>Playwright</code>ๅฎ่ฃ
ๅคฑ่ดฅ</p><ul><li>่พๅ
ฅ<code>playwright install</code>ๅฎ่ฃ
ๆต่งๅจ</li></ul></li><li><p>ๆ็ๆไปถๅฎ่ฃ
ๅๆฅ้ๆ ๆณๅฏๅจ</p><ul><li>่ฏทๅ
ๆฅ้
ๆไปถๆๆกฃ๏ผ็กฎ่ฎคๆไปถๅฟ
่ฆ้
็ฝฎ้กนๅฎๅฅฝๅ๏ผไป็ถๅบ็ฐ้ฎ้ข๏ผ่ฏท่็ณปๆไปถไฝ่
ๆๅจๅฎๅ
จๆจกๅผ<code>safe_mode: true</code>ไธๅฏๅจ่ฝป้ช๏ผๅจๅฎๅ
จๆจกๅผไธไฝ ๅฏไปฅไฝฟ็จ<code>npm uninstall</code>ๅธ่ฝฝ้ฎ้ขๆไปถ</li></ul></li></ul><h2 id="ๅ
ถไป้ฎ้ข" tabindex="-1">ๅ
ถไป้ฎ้ข <a class="header-anchor" href="#ๅ
ถไป้ฎ้ข" aria-label="Permalink to "ๅ
ถไป้ฎ้ข"">โ</a></h2><pre><code>-
|
||||
ๅ ๅ
ฅQQ็พค[775840726](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SzmDYbfR6jY94o9KFNon7AwelRyI6M_u&authKey=ygeBdEmdFNyCWuNR4w0M1M8%2B5oDg7k%2FDfN0tzBkYcnbB%2FGHNnlVEnCIGbdftsnn7&noverify=0&group_code=775840726)
|
||||
</code></pre>`,5)]))}const m=o(i,[["render",d]]);export{u as __pageData,m as default};
|
3
assets/deploy_fandq.md.DYuQyOrf.lean.js
Normal file
3
assets/deploy_fandq.md.DYuQyOrf.lean.js
Normal file
@ -0,0 +1,3 @@
|
||||
import{_ as o,c as t,a7 as a,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"็ญ็","description":"","frontmatter":{"title":"็ญ็","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1729881298000}'),i={name:"deploy/fandq.md"};function d(n,e,r,p,c,s){return l(),t("div",null,e[0]||(e[0]=[a(`<h1 id="็ญ็" tabindex="-1">็ญ็ <a class="header-anchor" href="#็ญ็" aria-label="Permalink to "็ญ็"">โ</a></h1><h2 id="ๅธธ่ง้ฎ้ข" tabindex="-1"><strong>ๅธธ่ง้ฎ้ข</strong> <a class="header-anchor" href="#ๅธธ่ง้ฎ้ข" aria-label="Permalink to "**ๅธธ่ง้ฎ้ข**"">โ</a></h2><ul><li><p>่ฎพๅคไธPython็ฏๅขๅคชไนฑไบ๏ผpipๅpythonไธๅฏนๅบๆไนๅ๏ผ</p><ul><li>่ฏทไฝฟ็จ<code>/path/to/python -m pip install -r requirements.txt</code>ๆฅๅฎ่ฃ
ไพ่ต๏ผ ็ถๅ็จ<code>/path/to/python main.py</code>ๆฅๅฏๅจBot๏ผ ๅ
ถไธญ<code>/path/to/python</code>ๆฏไฝ ่ฆ็จๆฅ่ฟ่กBot็ๅฏๆง่กๆไปถ</li></ul></li><li><p>ๆดๆฐ่ฝป้ชๅคฑ่ดฅ๏ผๆฅ้<code>InvalidGitRepositoryError</code></p><ul><li>่ฏทๆญฃ็กฎๅฎ่ฃ
<code>Git</code>๏ผๅนถไฝฟ็จๅ
้่้็ดๆฅไธ่ฝฝ็ๆนๅผ้จ็ฝฒ่ฝป้ช</li></ul></li><li><p>ๆไนๅฏนๆฅ่ๅคฉๅนณๅฐ๏ผ</p><ul><li>Bot้จๅๆไปถๆไพไบๅฏนๆฅ็นๅฎๅนณๅฐ็่ฝๅ๏ผไพๅฆไฝฟ็จNoneBotๆไปถๅฏๅฏนๆฅๆฏๆ็้้
ๅจๅนณๅฐ</li></ul></li><li><p><code>Playwright</code>ๅฎ่ฃ
ๅคฑ่ดฅ</p><ul><li>่พๅ
ฅ<code>playwright install</code>ๅฎ่ฃ
ๆต่งๅจ</li></ul></li><li><p>ๆ็ๆไปถๅฎ่ฃ
ๅๆฅ้ๆ ๆณๅฏๅจ</p><ul><li>่ฏทๅ
ๆฅ้
ๆไปถๆๆกฃ๏ผ็กฎ่ฎคๆไปถๅฟ
่ฆ้
็ฝฎ้กนๅฎๅฅฝๅ๏ผไป็ถๅบ็ฐ้ฎ้ข๏ผ่ฏท่็ณปๆไปถไฝ่
ๆๅจๅฎๅ
จๆจกๅผ<code>safe_mode: true</code>ไธๅฏๅจ่ฝป้ช๏ผๅจๅฎๅ
จๆจกๅผไธไฝ ๅฏไปฅไฝฟ็จ<code>npm uninstall</code>ๅธ่ฝฝ้ฎ้ขๆไปถ</li></ul></li></ul><h2 id="ๅ
ถไป้ฎ้ข" tabindex="-1">ๅ
ถไป้ฎ้ข <a class="header-anchor" href="#ๅ
ถไป้ฎ้ข" aria-label="Permalink to "ๅ
ถไป้ฎ้ข"">โ</a></h2><pre><code>-
|
||||
ๅ ๅ
ฅQQ็พค[775840726](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SzmDYbfR6jY94o9KFNon7AwelRyI6M_u&authKey=ygeBdEmdFNyCWuNR4w0M1M8%2B5oDg7k%2FDfN0tzBkYcnbB%2FGHNnlVEnCIGbdftsnn7&noverify=0&group_code=775840726)
|
||||
</code></pre>`,5)]))}const m=o(i,[["render",d]]);export{u as __pageData,m as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,c as n,j as e,a as t,o as i}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"dev/api/session/message/segments.md","filePath":"zh/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"dev/api/session/message/segments.md"};function m(l,s,r,d,g,c){return i(),n("div",null,s[0]||(s[0]=[e("h1",{id:"ๆจกๅ-liteyuki-session-message-segments",tabindex:"-1"},[e("strong",null,"ๆจกๅ"),t(),e("code",null,"liteyuki.session.message.segments"),t(),e("a",{class:"header-anchor",href:"#ๆจกๅ-liteyuki-session-message-segments","aria-label":'Permalink to "**ๆจกๅ** `liteyuki.session.message.segments`"'},"โ")],-1)]))}const f=a(o,[["render",m]]);export{u as __pageData,f as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,c as n,j as e,a as t,o as i}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"dev/api/session/message/segments.md","filePath":"zh/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"dev/api/session/message/segments.md"};function m(l,s,r,d,g,c){return i(),n("div",null,s[0]||(s[0]=[e("h1",{id:"ๆจกๅ-liteyuki-session-message-segments",tabindex:"-1"},[e("strong",null,"ๆจกๅ"),t(),e("code",null,"liteyuki.session.message.segments"),t(),e("a",{class:"header-anchor",href:"#ๆจกๅ-liteyuki-session-message-segments","aria-label":'Permalink to "**ๆจกๅ** `liteyuki.session.message.segments`"'},"โ")],-1)]))}const f=a(o,[["render",m]]);export{u as __pageData,f as default};
|
1
assets/dev_api_session_message_segments.md.BquBMIE7.js
Normal file
1
assets/dev_api_session_message_segments.md.BquBMIE7.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,c as t,a7 as s,o as r}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"dev/api/session/message/segments.md","filePath":"zh/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"dev/api/session/message/segments.md"};function n(l,e,d,i,c,m){return r(),t("div",null,e[0]||(e[0]=[s('<h1 id="ๆจกๅ-liteyuki-session-message-segments" tabindex="-1"><strong>ๆจกๅ</strong> <code>liteyuki.session.message.segments</code> <a class="header-anchor" href="#ๆจกๅ-liteyuki-session-message-segments" aria-label="Permalink to "**ๆจกๅ** `liteyuki.session.message.segments`"">โ</a></h1><h3 id="class-baseseg-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>BaseSeg(BaseModel)</code> <a class="header-anchor" href="#class-baseseg-basemodel" aria-label="Permalink to "***class*** `BaseSeg(BaseModel)`"">โ</a></h3><h4 id="attr-type-str-segment" tabindex="-1"><em><strong>attr</strong></em> <code>type: str = 'Segment'</code> <a class="header-anchor" href="#attr-type-str-segment" aria-label="Permalink to "***attr*** `type: str = 'Segment'`"">โ</a></h4><h4 id="attr-data-dict-str-any-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>data: dict[str, Any] = NO_DEFAULT</code> <a class="header-anchor" href="#attr-data-dict-str-any-no-default" aria-label="Permalink to "***attr*** `data: dict[str, Any] = NO_DEFAULT`"">โ</a></h4><h3 id="class-text-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Text(BaseSeg)</code> <a class="header-anchor" href="#class-text-baseseg" aria-label="Permalink to "***class*** `Text(BaseSeg)`"">โ</a></h3><h4 id="attr-content-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>content: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-content-str-no-default" aria-label="Permalink to "***attr*** `content: str = NO_DEFAULT`"">โ</a></h4><h3 id="class-image-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Image(BaseSeg)</code> <a class="header-anchor" href="#class-image-baseseg" aria-label="Permalink to "***class*** `Image(BaseSeg)`"">โ</a></h3><h4 id="attr-url-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>url: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-url-str-no-default" aria-label="Permalink to "***attr*** `url: str = NO_DEFAULT`"">โ</a></h4>',8)]))}const u=a(o,[["render",n]]);export{h as __pageData,u as default};
|
@ -0,0 +1 @@
|
||||
import{_ as a,c as t,a7 as s,o as r}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"dev/api/session/message/segments.md","filePath":"zh/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"dev/api/session/message/segments.md"};function n(l,e,d,i,c,m){return r(),t("div",null,e[0]||(e[0]=[s('<h1 id="ๆจกๅ-liteyuki-session-message-segments" tabindex="-1"><strong>ๆจกๅ</strong> <code>liteyuki.session.message.segments</code> <a class="header-anchor" href="#ๆจกๅ-liteyuki-session-message-segments" aria-label="Permalink to "**ๆจกๅ** `liteyuki.session.message.segments`"">โ</a></h1><h3 id="class-baseseg-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>BaseSeg(BaseModel)</code> <a class="header-anchor" href="#class-baseseg-basemodel" aria-label="Permalink to "***class*** `BaseSeg(BaseModel)`"">โ</a></h3><h4 id="attr-type-str-segment" tabindex="-1"><em><strong>attr</strong></em> <code>type: str = 'Segment'</code> <a class="header-anchor" href="#attr-type-str-segment" aria-label="Permalink to "***attr*** `type: str = 'Segment'`"">โ</a></h4><h4 id="attr-data-dict-str-any-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>data: dict[str, Any] = NO_DEFAULT</code> <a class="header-anchor" href="#attr-data-dict-str-any-no-default" aria-label="Permalink to "***attr*** `data: dict[str, Any] = NO_DEFAULT`"">โ</a></h4><h3 id="class-text-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Text(BaseSeg)</code> <a class="header-anchor" href="#class-text-baseseg" aria-label="Permalink to "***class*** `Text(BaseSeg)`"">โ</a></h3><h4 id="attr-content-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>content: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-content-str-no-default" aria-label="Permalink to "***attr*** `content: str = NO_DEFAULT`"">โ</a></h4><h3 id="class-image-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Image(BaseSeg)</code> <a class="header-anchor" href="#class-image-baseseg" aria-label="Permalink to "***class*** `Image(BaseSeg)`"">โ</a></h3><h4 id="attr-url-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>url: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-url-str-no-default" aria-label="Permalink to "***attr*** `url: str = NO_DEFAULT`"">โ</a></h4>',8)]))}const u=a(o,[["render",n]]);export{h as __pageData,u as default};
|
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฟ็จ้ไฟก","description":"","frontmatter":{"title":"่ฟ็จ้ไฟก","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),l={name:"dev/comm.md"};function h(t,s,p,k,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`<h1 id="้้้ไฟก" tabindex="-1"><strong>้้้ไฟก</strong> <a class="header-anchor" href="#้้้ไฟก" aria-label="Permalink to "**้้้ไฟก**"">โ</a></h1><h3 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h3><p>่ฝป้ช่ฟ่กๅจไธป่ฟ็จ MainProcess ้๏ผๅ
ถไปๆไปถๆกๆถ่ฟ็จๆฏไผด้็ๅญ่ฟ็จ๏ผๅ ๆญคๆ ๆณ้่ฟๅ
ๅญๅ
ฑไบซๅ็ดๆฅๅฏน่ฑกไผ ้็ๆนๅผ่ฟ่ก้ไฟก๏ผ ่ฝป้ชๆไพไบไธไธช้้<a href="./api/comm/channel.html#class-channel-generic-t"><code>Channel</code></a>็จไบ่ทจ่ฟ็จ้ไฟก๏ผ ไฝ ๅฏไปฅ้่ฟ<a href="./api/comm/channel.html#class-channel-generic-t"><code>Channel</code></a>ๅ้ๆถๆฏ็ปๅ
ถไป่ฟ็จ๏ผไนๅฏไปฅ็ๅฌๅ
ถไป่ฟ็จ็ๆถๆฏใ</p><p>ไพๅฆๅญ่ฟ็จๆฅๆถๅฐ็จๆทไฟกๆฏ้่ฆ้ๅฏๆบๅจไบบ๏ผ่ฟๆถๅฏไปฅ้่ฟ้้ๅฏนไธป่ฟ็จๅ้ๆถๆฏ๏ผไธป่ฟ็จๆฅๆถๅฐๆถๆฏๅ้ๅฏๅฏนๅบๅญ่ฟ็จใ</p><h3 id="็คบไพ" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ" aria-label="Permalink to "็คบไพ"">โ</a></h3><p>้้ๆฏๅ
จๅๅทฅ็๏ผๆไธค็งๆฅๆถๆจกๅผ๏ผไฝไธไธช้้ๅช่ฝไฝฟ็จไธ็ง๏ผๅณ่ขซๅจๆจกๅผๅไธปๅจๆจกๅผ๏ผ่ขซๅจๆจกๅผ็ฑ<code>chan.on_receive()</code>่ฃ
้ฅฐๅ่ฐๅฝๆฐๅฎ็ฐ๏ผไธปๅจๆจกๅผ้่ฐ็จ<code>chan.receive()</code>ๅฎ็ฐ</p><ul><li>ๅๅปบๅญ่ฟ็จ็ๅๆถไผๅๅงๅไธไธช่ขซๅจ้้ๅไธไธชไธปๅจ้้๏ผไธ้้ๆ ่ฏไธบ<code>{process_name}-active</code>ๅ<code>{process_name}-passive</code>๏ผ</li><li>ไธป่ฟ็จไธญ้่ฟ<code>get_channel</code>ๅฝๆฐ่ทๅ้้ๅฏน่ฑก</li><li>ๅญ่ฟ็จไธญๅฏผๅ
ฅๅไพ<code>active_channel</code>ๅ<code>passive_channel</code>ๅณๅฏ</li></ul><blockquote><p>ๅจ่ฝป้ชๆไปถไธญ(ไธป่ฟ็จไธญ)</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> asyncio</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฟ็จ้ไฟก","description":"","frontmatter":{"title":"่ฟ็จ้ไฟก","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1729881298000}'),l={name:"dev/comm.md"};function e(h,s,p,k,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="้้้ไฟก" tabindex="-1"><strong>้้้ไฟก</strong> <a class="header-anchor" href="#้้้ไฟก" aria-label="Permalink to "**้้้ไฟก**"">โ</a></h1><h3 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h3><p>่ฝป้ช่ฟ่กๅจไธป่ฟ็จ MainProcess ้๏ผๆ้จๅๅฎ็ฐๆไปถไธบไบไธไบๅ่ฝๅจๅญ่ฟ็จไธญ่ฟ่ก๏ผ่ฟๆ ทไธคไธช่ฟ็จไธไธๆๆฏไธไผไบ็ธๅนฒๆฐ็๏ผๅ ๆญคๆ ๆณ้่ฟๅ
ฑไบซๅ
ๅญๅ็ดๆฅๅฏน่ฑกไผ ้่ฟ่ก้ไฟกใ</p><p>ไพๅฆๅญ่ฟ็จๆฅๆถๅฐ็จๆทไฟกๆฏ้่ฆ้ๅฏๆบๅจไบบ๏ผ่ฟๆถๅฏไปฅ้่ฟ้้ๅฏนไธป่ฟ็จๅ้ๆถๆฏ๏ผไธป่ฟ็จๆฅๆถๅฐๆถๆฏๅ้ๅฏๅฏนๅบๅญ่ฟ็จใ</p><h3 id="็คบไพ" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ" aria-label="Permalink to "็คบไพ"">โ</a></h3><p>้้ๆฏๅ
จๅๅทฅ็๏ผๆไธค็งๆฅๆถๆจกๅผ๏ผไฝไธไธช้้ๅช่ฝไฝฟ็จไธ็ง๏ผๅณ่ขซๅจๆจกๅผๅไธปๅจๆจกๅผ๏ผ่ขซๅจๆจกๅผ็ฑ<code>chan.on_receive()</code>่ฃ
้ฅฐๅ่ฐๅฝๆฐๅฎ็ฐ๏ผไธปๅจๆจกๅผ้่ฐ็จ<code>chan.receive()</code>ๅฎ็ฐ</p><ul><li>ๅๅปบๅญ่ฟ็จ็ๅๆถไผๅๅงๅไธไธช่ขซๅจ้้ๅไธไธชไธปๅจ้้๏ผไธ้้ๆ ่ฏไธบ<code>{process_name}-active</code>ๅ<code>{process_name}-passive</code>๏ผ</li><li>ไธป่ฟ็จไธญ้่ฟ<code>get_channel</code>ๅฝๆฐ่ทๅ้้ๅฏน่ฑก</li><li>ๅญ่ฟ็จไธญๅฏผๅ
ฅๅไพ<code>active_channel</code>ๅ<code>passive_channel</code>ๅณๅฏ</li></ul><blockquote><p>ๅจ่ฝป้ชๆไปถไธญ(ไธป่ฟ็จไธญ)</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> asyncio</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.comm </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> get_channel, Channel</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> get_bot</span></span>
|
||||
@ -40,4 +40,4 @@ import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">...</span></span></code></pre></div><h2 id="ๅ
ฑไบซๅ
ๅญ้ไฟก" tabindex="-1"><strong>ๅ
ฑไบซๅ
ๅญ้ไฟก</strong> <a class="header-anchor" href="#ๅ
ฑไบซๅ
ๅญ้ไฟก" aria-label="Permalink to "**ๅ
ฑไบซๅ
ๅญ้ไฟก**"">โ</a></h2><h3 id="็ฎไป-1" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป-1" aria-label="Permalink to "็ฎไป"">โ</a></h3><ul><li>็ธๆฏไบๆฎ้่ฟ็จ้ไฟก๏ผๅ
ๅญๅ
ฑไบซไฝฟๅพไปฃ็ ็ผๅๆดๅ ็ฎๆด๏ผ่ฝป้ชๆกๆถๆไพไบไธไธชๅ
ๅญๅ
ฑไบซ้ไฟก็ๆฅๅฃ๏ผไฝ ๅฏไปฅ้่ฟ<code>storage</code>ๆจกๅๅฎ็ฐๅ
ๅญๅ
ฑไบซ้ไฟก๏ผ่ฏฅๆจกๅๅฐ่ฃ
้้ๅฎ็ฐ</li><li>ๅ
ๅญๅ
ฑไบซๆฏ็บฟ็จๅฎๅ
จ็๏ผไฝ ๅฏไปฅๅจๅคไธช็บฟ็จไธญ่ฏปๅๅ
ฑไบซๅ
ๅญ๏ผ็บฟ็จ้ไผ่ชๅจไฟๆคๅ
ฑไบซๅ
ๅญ็่ฏปๅๆไฝ</li></ul><h3 id="็คบไพ-1" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ-1" aria-label="Permalink to "็คบไพ"">โ</a></h3><blockquote><p>ๅจไปปๆ่ฟ็จไธญๅๅฏไฝฟ็จ</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.comm.storage </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">shared_memory.set(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"value"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ฎพ็ฝฎๅ
ฑไบซๅ
ๅญ</span></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">value </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory.get(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ทๅๅ
ฑไบซๅ
ๅญ</span></span></code></pre></div><p>ๆบไปฃ็ ๏ผ<a href="https://github.com/LiteyukiStudio/LiteyukiBot/blob/main/liteyuki/comm/storage.py" target="_blank" rel="noreferrer">liteyuki/comm/storage.py</a></p>`,20)]))}const c=i(l,[["render",h]]);export{o as __pageData,c as default};
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">value </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory.get(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ทๅๅ
ฑไบซๅ
ๅญ</span></span></code></pre></div><p>ๆบไปฃ็ ๏ผ<a href="https://github.com/LiteyukiStudio/LiteyukiBot/blob/main/liteyuki/comm/storage.py" target="_blank" rel="noreferrer">liteyuki/comm/storage.py</a></p>`,20)]))}const c=i(l,[["render",e]]);export{o as __pageData,c as default};
|
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฟ็จ้ไฟก","description":"","frontmatter":{"title":"่ฟ็จ้ไฟก","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),l={name:"dev/comm.md"};function h(t,s,p,k,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`<h1 id="้้้ไฟก" tabindex="-1"><strong>้้้ไฟก</strong> <a class="header-anchor" href="#้้้ไฟก" aria-label="Permalink to "**้้้ไฟก**"">โ</a></h1><h3 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h3><p>่ฝป้ช่ฟ่กๅจไธป่ฟ็จ MainProcess ้๏ผๅ
ถไปๆไปถๆกๆถ่ฟ็จๆฏไผด้็ๅญ่ฟ็จ๏ผๅ ๆญคๆ ๆณ้่ฟๅ
ๅญๅ
ฑไบซๅ็ดๆฅๅฏน่ฑกไผ ้็ๆนๅผ่ฟ่ก้ไฟก๏ผ ่ฝป้ชๆไพไบไธไธช้้<a href="./api/comm/channel.html#class-channel-generic-t"><code>Channel</code></a>็จไบ่ทจ่ฟ็จ้ไฟก๏ผ ไฝ ๅฏไปฅ้่ฟ<a href="./api/comm/channel.html#class-channel-generic-t"><code>Channel</code></a>ๅ้ๆถๆฏ็ปๅ
ถไป่ฟ็จ๏ผไนๅฏไปฅ็ๅฌๅ
ถไป่ฟ็จ็ๆถๆฏใ</p><p>ไพๅฆๅญ่ฟ็จๆฅๆถๅฐ็จๆทไฟกๆฏ้่ฆ้ๅฏๆบๅจไบบ๏ผ่ฟๆถๅฏไปฅ้่ฟ้้ๅฏนไธป่ฟ็จๅ้ๆถๆฏ๏ผไธป่ฟ็จๆฅๆถๅฐๆถๆฏๅ้ๅฏๅฏนๅบๅญ่ฟ็จใ</p><h3 id="็คบไพ" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ" aria-label="Permalink to "็คบไพ"">โ</a></h3><p>้้ๆฏๅ
จๅๅทฅ็๏ผๆไธค็งๆฅๆถๆจกๅผ๏ผไฝไธไธช้้ๅช่ฝไฝฟ็จไธ็ง๏ผๅณ่ขซๅจๆจกๅผๅไธปๅจๆจกๅผ๏ผ่ขซๅจๆจกๅผ็ฑ<code>chan.on_receive()</code>่ฃ
้ฅฐๅ่ฐๅฝๆฐๅฎ็ฐ๏ผไธปๅจๆจกๅผ้่ฐ็จ<code>chan.receive()</code>ๅฎ็ฐ</p><ul><li>ๅๅปบๅญ่ฟ็จ็ๅๆถไผๅๅงๅไธไธช่ขซๅจ้้ๅไธไธชไธปๅจ้้๏ผไธ้้ๆ ่ฏไธบ<code>{process_name}-active</code>ๅ<code>{process_name}-passive</code>๏ผ</li><li>ไธป่ฟ็จไธญ้่ฟ<code>get_channel</code>ๅฝๆฐ่ทๅ้้ๅฏน่ฑก</li><li>ๅญ่ฟ็จไธญๅฏผๅ
ฅๅไพ<code>active_channel</code>ๅ<code>passive_channel</code>ๅณๅฏ</li></ul><blockquote><p>ๅจ่ฝป้ชๆไปถไธญ(ไธป่ฟ็จไธญ)</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> asyncio</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฟ็จ้ไฟก","description":"","frontmatter":{"title":"่ฟ็จ้ไฟก","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1729881298000}'),l={name:"dev/comm.md"};function e(h,s,p,k,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="้้้ไฟก" tabindex="-1"><strong>้้้ไฟก</strong> <a class="header-anchor" href="#้้้ไฟก" aria-label="Permalink to "**้้้ไฟก**"">โ</a></h1><h3 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h3><p>่ฝป้ช่ฟ่กๅจไธป่ฟ็จ MainProcess ้๏ผๆ้จๅๅฎ็ฐๆไปถไธบไบไธไบๅ่ฝๅจๅญ่ฟ็จไธญ่ฟ่ก๏ผ่ฟๆ ทไธคไธช่ฟ็จไธไธๆๆฏไธไผไบ็ธๅนฒๆฐ็๏ผๅ ๆญคๆ ๆณ้่ฟๅ
ฑไบซๅ
ๅญๅ็ดๆฅๅฏน่ฑกไผ ้่ฟ่ก้ไฟกใ</p><p>ไพๅฆๅญ่ฟ็จๆฅๆถๅฐ็จๆทไฟกๆฏ้่ฆ้ๅฏๆบๅจไบบ๏ผ่ฟๆถๅฏไปฅ้่ฟ้้ๅฏนไธป่ฟ็จๅ้ๆถๆฏ๏ผไธป่ฟ็จๆฅๆถๅฐๆถๆฏๅ้ๅฏๅฏนๅบๅญ่ฟ็จใ</p><h3 id="็คบไพ" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ" aria-label="Permalink to "็คบไพ"">โ</a></h3><p>้้ๆฏๅ
จๅๅทฅ็๏ผๆไธค็งๆฅๆถๆจกๅผ๏ผไฝไธไธช้้ๅช่ฝไฝฟ็จไธ็ง๏ผๅณ่ขซๅจๆจกๅผๅไธปๅจๆจกๅผ๏ผ่ขซๅจๆจกๅผ็ฑ<code>chan.on_receive()</code>่ฃ
้ฅฐๅ่ฐๅฝๆฐๅฎ็ฐ๏ผไธปๅจๆจกๅผ้่ฐ็จ<code>chan.receive()</code>ๅฎ็ฐ</p><ul><li>ๅๅปบๅญ่ฟ็จ็ๅๆถไผๅๅงๅไธไธช่ขซๅจ้้ๅไธไธชไธปๅจ้้๏ผไธ้้ๆ ่ฏไธบ<code>{process_name}-active</code>ๅ<code>{process_name}-passive</code>๏ผ</li><li>ไธป่ฟ็จไธญ้่ฟ<code>get_channel</code>ๅฝๆฐ่ทๅ้้ๅฏน่ฑก</li><li>ๅญ่ฟ็จไธญๅฏผๅ
ฅๅไพ<code>active_channel</code>ๅ<code>passive_channel</code>ๅณๅฏ</li></ul><blockquote><p>ๅจ่ฝป้ชๆไปถไธญ(ไธป่ฟ็จไธญ)</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> asyncio</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.comm </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> get_channel, Channel</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> get_bot</span></span>
|
||||
@ -40,4 +40,4 @@ import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">...</span></span></code></pre></div><h2 id="ๅ
ฑไบซๅ
ๅญ้ไฟก" tabindex="-1"><strong>ๅ
ฑไบซๅ
ๅญ้ไฟก</strong> <a class="header-anchor" href="#ๅ
ฑไบซๅ
ๅญ้ไฟก" aria-label="Permalink to "**ๅ
ฑไบซๅ
ๅญ้ไฟก**"">โ</a></h2><h3 id="็ฎไป-1" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป-1" aria-label="Permalink to "็ฎไป"">โ</a></h3><ul><li>็ธๆฏไบๆฎ้่ฟ็จ้ไฟก๏ผๅ
ๅญๅ
ฑไบซไฝฟๅพไปฃ็ ็ผๅๆดๅ ็ฎๆด๏ผ่ฝป้ชๆกๆถๆไพไบไธไธชๅ
ๅญๅ
ฑไบซ้ไฟก็ๆฅๅฃ๏ผไฝ ๅฏไปฅ้่ฟ<code>storage</code>ๆจกๅๅฎ็ฐๅ
ๅญๅ
ฑไบซ้ไฟก๏ผ่ฏฅๆจกๅๅฐ่ฃ
้้ๅฎ็ฐ</li><li>ๅ
ๅญๅ
ฑไบซๆฏ็บฟ็จๅฎๅ
จ็๏ผไฝ ๅฏไปฅๅจๅคไธช็บฟ็จไธญ่ฏปๅๅ
ฑไบซๅ
ๅญ๏ผ็บฟ็จ้ไผ่ชๅจไฟๆคๅ
ฑไบซๅ
ๅญ็่ฏปๅๆไฝ</li></ul><h3 id="็คบไพ-1" tabindex="-1">็คบไพ <a class="header-anchor" href="#็คบไพ-1" aria-label="Permalink to "็คบไพ"">โ</a></h3><blockquote><p>ๅจไปปๆ่ฟ็จไธญๅๅฏไฝฟ็จ</p></blockquote><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.comm.storage </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">shared_memory.set(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"value"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ฎพ็ฝฎๅ
ฑไบซๅ
ๅญ</span></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">value </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory.get(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ทๅๅ
ฑไบซๅ
ๅญ</span></span></code></pre></div><p>ๆบไปฃ็ ๏ผ<a href="https://github.com/LiteyukiStudio/LiteyukiBot/blob/main/liteyuki/comm/storage.py" target="_blank" rel="noreferrer">liteyuki/comm/storage.py</a></p>`,20)]))}const c=i(l,[["render",h]]);export{o as __pageData,c as default};
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">value </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> shared_memory.get(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"key"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ทๅๅ
ฑไบซๅ
ๅญ</span></span></code></pre></div><p>ๆบไปฃ็ ๏ผ<a href="https://github.com/LiteyukiStudio/LiteyukiBot/blob/main/liteyuki/comm/storage.py" target="_blank" rel="noreferrer">liteyuki/comm/storage.py</a></p>`,20)]))}const c=i(l,[["render",e]]);export{o as __pageData,c as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฝป้ชๆไปถๅผๅ","description":"","frontmatter":{"title":"่ฝป้ชๆไปถๅผๅ","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),h={name:"dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"ๆไปถๅผๅ","description":"","frontmatter":{"title":"ๆไปถๅผๅ","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1729881298000}'),h={name:"dev/plugin.md"};function p(l,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><p>ๆไปถๅคง่ดๅฏๅไธบๅบ็จ(Application)ใๅฎ็ฐ(Implementation)ๅๆๅก(Service)็ญๅ ็ง็ฑปๅ๏ผๅคง้จๅๆ
ๅตไธไธไธชๆไปถ้ๅธธๆฟๆ
็ๅคไธช่ดฃไปป๏ผๅฏๆ้่ฐๆด</p><p>ๅบ็จ๏ผไปๆป็บฟ้้ๆฅๆถๅฐๆถๆฏๅ่ฟ่กๅค็๏ผๅๅบ๏ผไปฅๅฎ็ฐๆไบๅ่ฝ๏ผไพๅฆ<code>echo</code></p><p>ๅฎ็ฐ๏ผๅฏนๆฅ็นๅฎๅนณๅฐ๏ผๆๅนณๅฐ็ๆถๆฏ่ฝฌๆขไธบ่ฝป้ชๆถๆฏๆ ผๅผไผ ๅ
ฅๆป็บฟ้้</p><p>ๆๅก๏ผๆไพไธ็ณปๅๅฏนๅค็ipc/rpc/http็ญๆๅก๏ผไพๅ
ถไปๆไปถ่ฐ็จ</p><p>ๆไปฌ้ผๅฑไฝฟ็จ<code>magicoca</code>่ฟ่กๅฏน่ฑกไผ ้ๆฅ่ฟ่กๆไปถ้ด้ไฟก่ไธๆฏไพ่ตๅ
ณ็ณป๏ผ่ฟๆ ทๅฏไปฅ้ฟๅ
ๅพๅคๆฝๅจ็้ฎ้ขใ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .watch_dog </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ๅฏผๅ
ฅ้ป่พ้จๅ</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฎไนๆไปถๅ
ๆฐๆฎ</span></span>
|
||||
@ -29,4 +29,4 @@ import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> logger.debug(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">f</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"File </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">{</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">event.src_path</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">}</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> changed, reloading nonebot..."</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.restart_process(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"nonebot"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ฐ็จ้ๅฏ่ฟ็จๆนๆณ</span></span></code></pre></div><h3 id="ๅ ่ฝฝๆไปถ" tabindex="-1">ๅ ่ฝฝๆไปถ <a class="header-anchor" href="#ๅ ่ฝฝๆไปถ" aria-label="Permalink to "ๅ ่ฝฝๆไปถ"">โ</a></h3><h4 id="ๆนๆณ1" tabindex="-1">ๆนๆณ1 <a class="header-anchor" href="#ๆนๆณ1" aria-label="Permalink to "ๆนๆณ1"">โ</a></h4><ul><li>ๅจ้
็ฝฎๆไปถไธญ็<code>liteyuki.plugins</code>ไธญๆทปๅ ไฝ ็ๆไปถ่ทฏๅพ๏ผไพๅฆ<code>watchdog_plugin</code>๏ผ้ๅฏ่ฝป้ชๅณๅฏๅ ่ฝฝๆไปถใ</li></ul><h4 id="ๆนๆณ2" tabindex="-1">ๆนๆณ2 <a class="header-anchor" href="#ๆนๆณ2" aria-label="Permalink to "ๆนๆณ2"">โ</a></h4><ul><li>ไฝฟ็จๅผๅๅทฅๅ
ทๅฟซ้่ฟ่กๆไปถ๏ผๆ ้ๆๅจๅๅปบๅฎไพ</li><li>ๅๅปบๅ
ฅๅฃๆไปถ๏ผไพๅฆ<code>main.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไปฅไธไปฃ็ </li></ul><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.dev.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> run_plugins</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">run_plugins(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"watchdog_plugin"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p>็ถๅ่ฟ่ก<code>python main.py</code>ๅณๅฏๅฏๅจๆไปถ</p><p>ๅฏ็จๆไปถๅ๏ผๆไปฌๅจsrc/nonebot_pluginsไธๅๅปบไธไธชๆไปถ๏ผไพๅฆ<code>test.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไธไบไปฃ็ ๏ผไฟๅญๅ่ฝป้ชไผ่ชๅจ้่ฝฝNoneBot่ฟ็จ</p>`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default};
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">run_plugins(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"watchdog_plugin"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p>็ถๅ่ฟ่ก<code>python main.py</code>ๅณๅฏๅฏๅจๆไปถ</p><p>ๅฏ็จๆไปถๅ๏ผๆไปฌๅจsrc/nonebot_pluginsไธๅๅปบไธไธชๆไปถ๏ผไพๅฆ<code>test.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไธไบไปฃ็ ๏ผไฟๅญๅ่ฝป้ชไผ่ชๅจ้่ฝฝNoneBot่ฟ็จ</p>`,24)]))}const g=i(h,[["render",p]]);export{E as __pageData,g as default};
|
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"่ฝป้ชๆไปถๅผๅ","description":"","frontmatter":{"title":"่ฝป้ชๆไปถๅผๅ","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),h={name:"dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"ๆไปถๅผๅ","description":"","frontmatter":{"title":"ๆไปถๅผๅ","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1729881298000}'),h={name:"dev/plugin.md"};function p(l,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><p>ๆไปถๅคง่ดๅฏๅไธบๅบ็จ(Application)ใๅฎ็ฐ(Implementation)ๅๆๅก(Service)็ญๅ ็ง็ฑปๅ๏ผๅคง้จๅๆ
ๅตไธไธไธชๆไปถ้ๅธธๆฟๆ
็ๅคไธช่ดฃไปป๏ผๅฏๆ้่ฐๆด</p><p>ๅบ็จ๏ผไปๆป็บฟ้้ๆฅๆถๅฐๆถๆฏๅ่ฟ่กๅค็๏ผๅๅบ๏ผไปฅๅฎ็ฐๆไบๅ่ฝ๏ผไพๅฆ<code>echo</code></p><p>ๅฎ็ฐ๏ผๅฏนๆฅ็นๅฎๅนณๅฐ๏ผๆๅนณๅฐ็ๆถๆฏ่ฝฌๆขไธบ่ฝป้ชๆถๆฏๆ ผๅผไผ ๅ
ฅๆป็บฟ้้</p><p>ๆๅก๏ผๆไพไธ็ณปๅๅฏนๅค็ipc/rpc/http็ญๆๅก๏ผไพๅ
ถไปๆไปถ่ฐ็จ</p><p>ๆไปฌ้ผๅฑไฝฟ็จ<code>magicoca</code>่ฟ่กๅฏน่ฑกไผ ้ๆฅ่ฟ่กๆไปถ้ด้ไฟก่ไธๆฏไพ่ตๅ
ณ็ณป๏ผ่ฟๆ ทๅฏไปฅ้ฟๅ
ๅพๅคๆฝๅจ็้ฎ้ขใ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .watch_dog </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ๅฏผๅ
ฅ้ป่พ้จๅ</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฎไนๆไปถๅ
ๆฐๆฎ</span></span>
|
||||
@ -29,4 +29,4 @@ import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> logger.debug(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">f</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"File </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">{</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">event.src_path</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">}</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> changed, reloading nonebot..."</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.restart_process(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"nonebot"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ่ฐ็จ้ๅฏ่ฟ็จๆนๆณ</span></span></code></pre></div><h3 id="ๅ ่ฝฝๆไปถ" tabindex="-1">ๅ ่ฝฝๆไปถ <a class="header-anchor" href="#ๅ ่ฝฝๆไปถ" aria-label="Permalink to "ๅ ่ฝฝๆไปถ"">โ</a></h3><h4 id="ๆนๆณ1" tabindex="-1">ๆนๆณ1 <a class="header-anchor" href="#ๆนๆณ1" aria-label="Permalink to "ๆนๆณ1"">โ</a></h4><ul><li>ๅจ้
็ฝฎๆไปถไธญ็<code>liteyuki.plugins</code>ไธญๆทปๅ ไฝ ็ๆไปถ่ทฏๅพ๏ผไพๅฆ<code>watchdog_plugin</code>๏ผ้ๅฏ่ฝป้ชๅณๅฏๅ ่ฝฝๆไปถใ</li></ul><h4 id="ๆนๆณ2" tabindex="-1">ๆนๆณ2 <a class="header-anchor" href="#ๆนๆณ2" aria-label="Permalink to "ๆนๆณ2"">โ</a></h4><ul><li>ไฝฟ็จๅผๅๅทฅๅ
ทๅฟซ้่ฟ่กๆไปถ๏ผๆ ้ๆๅจๅๅปบๅฎไพ</li><li>ๅๅปบๅ
ฅๅฃๆไปถ๏ผไพๅฆ<code>main.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไปฅไธไปฃ็ </li></ul><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.dev.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> run_plugins</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">run_plugins(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"watchdog_plugin"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p>็ถๅ่ฟ่ก<code>python main.py</code>ๅณๅฏๅฏๅจๆไปถ</p><p>ๅฏ็จๆไปถๅ๏ผๆไปฌๅจsrc/nonebot_pluginsไธๅๅปบไธไธชๆไปถ๏ผไพๅฆ<code>test.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไธไบไปฃ็ ๏ผไฟๅญๅ่ฝป้ชไผ่ชๅจ้่ฝฝNoneBot่ฟ็จ</p>`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default};
|
||||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">run_plugins(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"watchdog_plugin"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p>็ถๅ่ฟ่ก<code>python main.py</code>ๅณๅฏๅฏๅจๆไปถ</p><p>ๅฏ็จๆไปถๅ๏ผๆไปฌๅจsrc/nonebot_pluginsไธๅๅปบไธไธชๆไปถ๏ผไพๅฆ<code>test.py</code>๏ผๅนถๅจๅ
ถไธญๅๅ
ฅไธไบไปฃ็ ๏ผไฟๅญๅ่ฝป้ชไผ่ชๅจ้่ฝฝNoneBot่ฟ็จ</p>`,24)]))}const g=i(h,[["render",p]]);export{E as __pageData,g as default};
|
1
assets/en_deploy_fandq.md.CfGzF3ge.js
Normal file
1
assets/en_deploy_fandq.md.CfGzF3ge.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as t,c as o,a7 as a,o as i}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1729881298000}'),n={name:"en/deploy/fandq.md"};function l(r,e,s,u,p,d){return i(),o("div",null,e[0]||(e[0]=[a('<h1 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to "FAQ"">โ</a></h1><h2 id="frequently-asked-questions" tabindex="-1"><strong>Frequently Asked Questions</strong> <a class="header-anchor" href="#frequently-asked-questions" aria-label="Permalink to "**Frequently Asked Questions**"">โ</a></h2><ul><li><p>There are too many python interpreters on my computer, how do I know which one to use?</p><ul><li>You can specify which python interpreter to use by using the full path to the python executable, for example, <code>/path/to/python main.py</code></li><li>Use virtual environments to avoid conflicts between different python interpreters</li></ul></li><li><p>Update Liteyuki failed, error <code>InvalidGitRepositoryError</code></p><ul><li>Please install <code>Git</code> correctly and deploy Liteyuki using cloning instead of direct download</li></ul></li><li><p>How to log in to chat platforms?</p><ul><li>Some plugins provide the ability to log in to specific platforms, for example, using the NoneBot plugin to log in to supported adapter platforms</li></ul></li><li><p><code>Playwright</code> installation failed</p><ul><li>Enter <code>playwright install</code> to install the browser</li></ul></li><li><p>Some plugins report errors after installation and cannot be started</p><ul><li>Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode <code>safe_mode: true</code>. In safe mode, you can use <code>npm uninstall</code> to uninstall problematic plugins</li></ul></li></ul><h2 id="other-questions" tabindex="-1">Other questions <a class="header-anchor" href="#other-questions" aria-label="Permalink to "Other questions"">โ</a></h2><ul><li>Join chat group<a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SzmDYbfR6jY94o9KFNon7AwelRyI6M_u&authKey=ygeBdEmdFNyCWuNR4w0M1M8%2B5oDg7k%2FDfN0tzBkYcnbB%2FGHNnlVEnCIGbdftsnn7&noverify=0&group_code=775840726" target="_blank" rel="noreferrer">775840726</a></li><li>If you don't have a QQ account, you can <a href="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=" target="_blank" rel="noreferrer">submit an issue on GitHub</a></li></ul>',5)]))}const f=t(n,[["render",l]]);export{h as __pageData,f as default};
|
1
assets/en_deploy_fandq.md.CfGzF3ge.lean.js
Normal file
1
assets/en_deploy_fandq.md.CfGzF3ge.lean.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as t,c as o,a7 as a,o as i}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1729881298000}'),n={name:"en/deploy/fandq.md"};function l(r,e,s,u,p,d){return i(),o("div",null,e[0]||(e[0]=[a('<h1 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to "FAQ"">โ</a></h1><h2 id="frequently-asked-questions" tabindex="-1"><strong>Frequently Asked Questions</strong> <a class="header-anchor" href="#frequently-asked-questions" aria-label="Permalink to "**Frequently Asked Questions**"">โ</a></h2><ul><li><p>There are too many python interpreters on my computer, how do I know which one to use?</p><ul><li>You can specify which python interpreter to use by using the full path to the python executable, for example, <code>/path/to/python main.py</code></li><li>Use virtual environments to avoid conflicts between different python interpreters</li></ul></li><li><p>Update Liteyuki failed, error <code>InvalidGitRepositoryError</code></p><ul><li>Please install <code>Git</code> correctly and deploy Liteyuki using cloning instead of direct download</li></ul></li><li><p>How to log in to chat platforms?</p><ul><li>Some plugins provide the ability to log in to specific platforms, for example, using the NoneBot plugin to log in to supported adapter platforms</li></ul></li><li><p><code>Playwright</code> installation failed</p><ul><li>Enter <code>playwright install</code> to install the browser</li></ul></li><li><p>Some plugins report errors after installation and cannot be started</p><ul><li>Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode <code>safe_mode: true</code>. In safe mode, you can use <code>npm uninstall</code> to uninstall problematic plugins</li></ul></li></ul><h2 id="other-questions" tabindex="-1">Other questions <a class="header-anchor" href="#other-questions" aria-label="Permalink to "Other questions"">โ</a></h2><ul><li>Join chat group<a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SzmDYbfR6jY94o9KFNon7AwelRyI6M_u&authKey=ygeBdEmdFNyCWuNR4w0M1M8%2B5oDg7k%2FDfN0tzBkYcnbB%2FGHNnlVEnCIGbdftsnn7&noverify=0&group_code=775840726" target="_blank" rel="noreferrer">775840726</a></li><li>If you don't have a QQ account, you can <a href="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=" target="_blank" rel="noreferrer">submit an issue on GitHub</a></li></ul>',5)]))}const f=t(n,[["render",l]]);export{h as __pageData,f as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
import{_ as a,c as t,a7 as s,o as r}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"en/dev/api/session/message/segments.md","filePath":"en/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"en/dev/api/session/message/segments.md"};function n(l,e,d,i,c,m){return r(),t("div",null,e[0]||(e[0]=[s('<h1 id="module-liteyuki-session-message-segments" tabindex="-1"><strong>Module</strong> <code>liteyuki.session.message.segments</code> <a class="header-anchor" href="#module-liteyuki-session-message-segments" aria-label="Permalink to "**Module** `liteyuki.session.message.segments`"">โ</a></h1><h3 id="class-baseseg-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>BaseSeg(BaseModel)</code> <a class="header-anchor" href="#class-baseseg-basemodel" aria-label="Permalink to "***class*** `BaseSeg(BaseModel)`"">โ</a></h3><h4 id="attr-type-str-segment" tabindex="-1"><em><strong>attr</strong></em> <code>type: str = 'Segment'</code> <a class="header-anchor" href="#attr-type-str-segment" aria-label="Permalink to "***attr*** `type: str = 'Segment'`"">โ</a></h4><h4 id="attr-data-dict-str-any-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>data: dict[str, Any] = NO_DEFAULT</code> <a class="header-anchor" href="#attr-data-dict-str-any-no-default" aria-label="Permalink to "***attr*** `data: dict[str, Any] = NO_DEFAULT`"">โ</a></h4><h3 id="class-text-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Text(BaseSeg)</code> <a class="header-anchor" href="#class-text-baseseg" aria-label="Permalink to "***class*** `Text(BaseSeg)`"">โ</a></h3><h4 id="attr-content-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>content: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-content-str-no-default" aria-label="Permalink to "***attr*** `content: str = NO_DEFAULT`"">โ</a></h4><h3 id="class-image-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Image(BaseSeg)</code> <a class="header-anchor" href="#class-image-baseseg" aria-label="Permalink to "***class*** `Image(BaseSeg)`"">โ</a></h3><h4 id="attr-url-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>url: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-url-str-no-default" aria-label="Permalink to "***attr*** `url: str = NO_DEFAULT`"">โ</a></h4>',8)]))}const u=a(o,[["render",n]]);export{h as __pageData,u as default};
|
@ -0,0 +1 @@
|
||||
import{_ as a,c as t,a7 as s,o as r}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"en/dev/api/session/message/segments.md","filePath":"en/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"en/dev/api/session/message/segments.md"};function n(l,e,d,i,c,m){return r(),t("div",null,e[0]||(e[0]=[s('<h1 id="module-liteyuki-session-message-segments" tabindex="-1"><strong>Module</strong> <code>liteyuki.session.message.segments</code> <a class="header-anchor" href="#module-liteyuki-session-message-segments" aria-label="Permalink to "**Module** `liteyuki.session.message.segments`"">โ</a></h1><h3 id="class-baseseg-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>BaseSeg(BaseModel)</code> <a class="header-anchor" href="#class-baseseg-basemodel" aria-label="Permalink to "***class*** `BaseSeg(BaseModel)`"">โ</a></h3><h4 id="attr-type-str-segment" tabindex="-1"><em><strong>attr</strong></em> <code>type: str = 'Segment'</code> <a class="header-anchor" href="#attr-type-str-segment" aria-label="Permalink to "***attr*** `type: str = 'Segment'`"">โ</a></h4><h4 id="attr-data-dict-str-any-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>data: dict[str, Any] = NO_DEFAULT</code> <a class="header-anchor" href="#attr-data-dict-str-any-no-default" aria-label="Permalink to "***attr*** `data: dict[str, Any] = NO_DEFAULT`"">โ</a></h4><h3 id="class-text-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Text(BaseSeg)</code> <a class="header-anchor" href="#class-text-baseseg" aria-label="Permalink to "***class*** `Text(BaseSeg)`"">โ</a></h3><h4 id="attr-content-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>content: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-content-str-no-default" aria-label="Permalink to "***attr*** `content: str = NO_DEFAULT`"">โ</a></h4><h3 id="class-image-baseseg" tabindex="-1"><em><strong>class</strong></em> <code>Image(BaseSeg)</code> <a class="header-anchor" href="#class-image-baseseg" aria-label="Permalink to "***class*** `Image(BaseSeg)`"">โ</a></h3><h4 id="attr-url-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>url: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-url-str-no-default" aria-label="Permalink to "***attr*** `url: str = NO_DEFAULT`"">โ</a></h4>',8)]))}const u=a(o,[["render",n]]);export{h as __pageData,u as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,c as n,j as e,a as t,o as i}from"./chunks/framework.jrU0lkHV.js";const p=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"en/dev/api/session/message/segments.md","filePath":"en/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"en/dev/api/session/message/segments.md"};function l(m,s,r,d,g,u){return i(),n("div",null,s[0]||(s[0]=[e("h1",{id:"module-liteyuki-session-message-segments",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.session.message.segments"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-session-message-segments","aria-label":'Permalink to "**Module** `liteyuki.session.message.segments`"'},"โ")],-1)]))}const f=a(o,[["render",l]]);export{p as __pageData,f as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,c as n,j as e,a as t,o as i}from"./chunks/framework.jrU0lkHV.js";const p=JSON.parse('{"title":"liteyuki.session.message.segments","description":"","frontmatter":{"title":"liteyuki.session.message.segments"},"headers":[],"relativePath":"en/dev/api/session/message/segments.md","filePath":"en/dev/api/session/message/segments.md","lastUpdated":null}'),o={name:"en/dev/api/session/message/segments.md"};function l(m,s,r,d,g,u){return i(),n("div",null,s[0]||(s[0]=[e("h1",{id:"module-liteyuki-session-message-segments",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.session.message.segments"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-session-message-segments","aria-label":'Permalink to "**Module** `liteyuki.session.message.segments`"'},"โ")],-1)]))}const f=a(o,[["render",l]]);export{p as __pageData,f as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Plugin","description":"","frontmatter":{"title":"Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1729881298000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝใ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .watch_dog </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ๅฏผๅ
ฅ้ป่พ้จๅ</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฎไนๆไปถๅ
ๆฐๆฎ</span></span>
|
@ -1,4 +1,4 @@
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Plugin","description":"","frontmatter":{"title":"Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1729881298000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`<h1 id="็ฎไป" tabindex="-1">็ฎไป <a class="header-anchor" href="#็ฎไป" aria-label="Permalink to "็ฎไป"">โ</a></h1><p>่ฝป้ชๆไปถๆฏ่ฝป้ชๅ
็ฝฎ็ไธ้จๅๅ่ฝ๏ผ่ฟ่กๅจไธป่ฟ็จไธญ๏ผๅฏไปฅๅพ้ซ็จๅบฆๅฐๆฉๅฑ่ฝป้ช็ๅ่ฝใ</p><h2 id="ๅผๅง" tabindex="-1">ๅผๅง <a class="header-anchor" href="#ๅผๅง" aria-label="Permalink to "ๅผๅง"">โ</a></h2><h3 id="ๅๅปบๆไปถ" tabindex="-1">ๅๅปบๆไปถ <a class="header-anchor" href="#ๅๅปบๆไปถ" aria-label="Permalink to "ๅๅปบๆไปถ"">โ</a></h3><p>ไธไธช<code>.py</code>ๆไปถๆไธไธชๅ
ๅซ<code>__init__.py</code>็ๆไปถๅคนๅณๅฏ่ขซ่ฏๅซไธบๆไปถ</p><p>้ฆๅ
ๅๅปบไธไธชๆไปถๅคน๏ผไพๅฆ<code>watchdog_plugin</code>๏ผๅนถๅจๅ
ถไธญๅๅปบไธไธช<code>__init__.py</code>ๆไปถ๏ผๅณๅฏๅๅปบไธไธชๆไปถ</p><p><code>__init__.py</code></p><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> liteyuki.plugin </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> PluginMetadata, PluginType</span></span>
|
||||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .watch_dog </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> # ๅฏผๅ
ฅ้ป่พ้จๅ</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># ๅฎไนๆไปถๅ
ๆฐๆฎ</span></span>
|
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
Reference in New Issue
Block a user