import{Case}from"./chunks/ContributorBar.bv7MGSiw.js";import{caso,Iast,a9asi,oasr}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.4Rp-d7uf.js";consta=i('<h1id="development-guide"tabindex="-1">DevelopmentGuide<aclass="header-anchor"href="#development-guide"aria-label="Permalink to "Development Guide""></a></h1><h2id="how-to-develop"tabindex="-1">HowtoDevelop<aclass="header-anchor"href="#how-to-develop"aria-label="Permalinkto"HowtoDevelop""></a></h2><p>Pleasereadthe<ahref="./plugin.html">PluginDevelopment</a>and<ahref="./api/">APIReference</a>documentsifyouaredevelopingaplugin.</p><p>IfyouneedtosubmitcodetotheLiteyukirepository,pleasereadthefollowing:</p><ol><li>First<ahref="https://github.com/LiteyukiStudio/LiteyukiBot/fork"target="_blank"rel="noreferrer">fork</a>acopyoftheLiteyukirepositorytoyourpersonal/organizationaccount.</li><li>Developinyourrepository.</li><li>Createanewbranchinyourrepositoryandsubmityourcodetothisbranch.</li><li>CreateaPullRequestinyourrepositorytomergeyourbranchintothe<code>main</code>branchoftheLiteyukirepository.</li></ol><ul><li>ParticipationindevelopmentassumesthatyouarealreadyfamiliarwiththebasicusageofthePythonlanguageandtheLiteyukiframework.</li><li>Ifyouaredevelopingdocumentation,pleaseensurethatyouarefamiliarwithMarkdownsyntaxandbasicfront-endknowledge.</li><li>Contacttherepositorymaintainerincaseofconflicts.</li></ul><h3id="suggestions"tabindex="-1">Suggestions<aclass="header-anchor"href="#suggestions"aria-label="Permalinkto"Suggestions""></a></h3><ul><li>Duringdevelopment,youcanusetoolssuchas<code>mypy</code>,<code>flake8</code>,and<code>black</code>forcodecheckingandformatting.</li><li>Enabledevelopermodebysetting<code>dev_mode:true</code>in<code>config.yml</code>toseemoredebugginginformationintheconsole.</li></ul><h2id="project-structure"tabindex="-1">ProjectStructure<aclass="header-anchor"href="#project-structure"aria-label="Permalinkto"ProjectStructure""></a></h2><ul><li><code>main.py</code>:Botentryfile</li><li><code>liteyuki</code>:Frameworkdirectory(liteyukibot)</li><li><code>src</code>:Botapplicationsourcecodedirectory<ul><li><code>liteyuki_plugins</code>:Liteyukiplugindirectory</li><li><code>nonebot_plugins</code>:Nonebotplugindirectory</li><li><code>resources</code>:Built-inresourcepacksdirectory</li><li><code>utils</code>:Utilitydirectory</li></ul></li><li><code>tests</code>:Unittestdirectory</li><li><code>docs</code>:Documentationdirectory<ul><li><code>en</code>:Englishdocumentation</li><li><code>zh</code>:Chinesedocumentation</li></ul></li><li><code>docker</code>:Dockerrelatedcontentdirectory</li></ul><p>The<code>liteyuki</code>frameworkisincludedinthe<code>LiteyukiBot</code>application,sothisprojectisboththe<code>LiteyukiBot</code>applicationrepositoryandthe<code>liteyuki</code>frameworkrepository.</p><p>The<code>src</code>directoryistheapplicationpart,pleasedevelopbusinesslogicinthisdirectory.<code>liteyuki_plugins</code>and<code>nonebot_plugins</code>directoriesareplugindirectories,pleasedeveloppluginsinthesedirectories.</p><h2id="standardization"tabindex="-1">Standardization<aclass="header-anchor"href="#standardization"aria-label="Permalinkto"Standardization""></a></h2><ul><li>Codeshouldfollow<ahref="https://pep8.org/"target="_blank"rel="noreferrer"><code>PEP8</code></a>and<ahref="https://google.github.io/styleguide/pyguide.html"target="_blank"rel="noreferrer"><code>GooglePythonStyleGuide</code></a>.</li><li>Inaddition,codesubmittedtotheLiteyukirepositoryshouldfollowthefollowingguidelines:<ul><li>Ensurethatthecodeisrunnableandharmless.</li><li>Ensurethatthetypehintsinthecodearecorrect.</li><li>Ensurethatthecommentstyleis<ahref="https://google.github.io/sty