📝 update guide docs

This commit is contained in:
yanyongyu
2020-12-01 12:24:14 +08:00
parent ad994f04fc
commit a085b47eac
6 changed files with 76 additions and 83 deletions

View File

@ -2,6 +2,12 @@
如果之前使用 `nb-cli` 生成了项目结构,那我们已经有了一个空的插件目录 `Awesome-Bot/awesome_bot/plugins`,并且它已在 `bot.py` 中被加载,我们现在可以开始创建插件了!
使用 `nb-cli` 创建包形式插件,或自行创建文件(夹)
```bash
nb plugin new
```
插件通常有两种形式,下面分别介绍
## 单文件形式