import{_ as e,c as o,o as t,a4 as i}from"./chunks/framework.BZiUP1E-.js";const m=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725158154000}'),r={name:"en/dev/guide.md"},a=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> [module]: <message>
, such as :sparkles: [liteyuki.event]: add new feature
, where the module field is the affected part, such as liteyuki.message
, docs.en.guide.md
, etc., 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: