import{C as o}from"./chunks/ContributorBar.WV_GFSPy.js";import{c as t,a7 as i,G as r,o as a}from"./chunks/framework.jrU0lkHV.js";import"./chunks/theme.BU5IJHhy.js";const h=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},p=Object.assign(l,{setup(n){return(d,e)=>(a(),t("div",null,[e[0]||(e[0]=i('
Please read the Plugin Development and API Reference documents if you are developing a plugin.
If you need to submit code to the Liteyuki repository, please read the following:
main
branch of the Liteyuki repository.mypy
, flake8
, and black
for code checking and formatting.dev_mode: true
in config.yml
to see more debugging information in the console.main.py
: Bot entry fileliteyuki
: Framework directory (liteyukibot)src
: Bot application source code directory liteyuki_plugins
: Liteyuki plugin directorynonebot_plugins
: Nonebot plugin directoryresources
: Built-in resource packs directoryutils
: Utility directorytests
: Unit test directorydocs
: Documentation directory en
: English documentationzh
: Chinese documentationdocker
: Docker related content directoryThe liteyuki
framework is included in the LiteyukiBot
application, so this project is both the LiteyukiBot
application repository and the liteyuki
framework repository.
The src
directory is the application part, please develop business logic in this directory. liteyuki_plugins
and nonebot_plugins
directories are plugin directories, please develop plugins in these directories.
PEP8
and Google Python Style Guide
.Google Docstring
or Liteyuki Docstring
(recommended) to ensure that Litedoc can parse and generate documentation correctly."
as much as possible, and single quotes '
should be used when nesting strings.:sparkles:
for introducing new features, :bug:
for fixing bugs, etc., please refer to gitmoji for details.<emoji> [type:] <message>
, such as :sparkles: feat: add new field to event
, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.Markdown
syntax and support vitepress-related content: