Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmhopesunshine/nb-cli-plugin-littlepaimon
为小派蒙定制的nb-cli插件 / Nonebot CLI plugin for LittlePaimon
https://github.com/cmhopesunshine/nb-cli-plugin-littlepaimon
littlepaimon nb-cli nonebot2
Last synced: 11 days ago
JSON representation
为小派蒙定制的nb-cli插件 / Nonebot CLI plugin for LittlePaimon
- Host: GitHub
- URL: https://github.com/cmhopesunshine/nb-cli-plugin-littlepaimon
- Owner: CMHopeSunshine
- License: agpl-3.0
- Created: 2023-01-25T13:48:17.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T12:19:42.000Z (over 1 year ago)
- Last Synced: 2024-10-14T09:44:15.195Z (25 days ago)
- Topics: littlepaimon, nb-cli, nonebot2
- Language: Python
- Homepage: https://docs.paimon.cherishmoon.fun
- Size: 177 KB
- Stars: 24
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NB CLI Plugin For LittlePaimon
_✨ 为[小派蒙Bot](https://github.com/CMHopeSunshine/LittlePaimon)定制的 NoneBot2 CLI 插件 ✨_
## 演示
[![asciicast](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b.svg)](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b)
## 安装
安装nb-cli
> 请确保你的Python版本为3.8+,且在环境变量中
通过 pipx 安装
```shell
pip install --user pipx
pipx ensurepath
pipx install nb-cli
```通过 pip 安装
```shell
pip install nb-cli
```---
安装本插件
通过 nb-cli 安装
```shell
nb self install nb-cli-plugin-littlepaimon
```通过 pipx 安装
```shell
pipx inject nb-cli nb-cli-plugin-littlepaimon
```通过 pip 安装
```shell
pip install nb-cli-plugin-littlepaimon
```---
安装Git
~~能上Github的话,应该都会装Git吧)~~
## 使用
- `nb paimon` 交互式使用
- `nb paimon create`
- 交互式指引安装[LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)
- 自动克隆源码、创建虚拟环境、安装依赖,下载并配置go-cqhttp
- 添加`-g`参数,则是只下载go-cqhttp
- `nb paimon run` 运行python命令或启动小派蒙
- 当接有命令时,使用该目录的下python解释器运行命令,例如`nb paimon run playwright install`
- 当没有命令时,使用该目录的下python解释器启动小派蒙,实际上等价于`nb run`,不过去掉了不常用的参数
- `nb paimon install` 安装依赖库到小派蒙环境中
- 当接有参数时,使用该目录的下pip安装依赖,例如`nb paimon install httpx`
- 当没有参数时,则是使用该目录的下pip安装`requirements.txt`中的依赖
- `nb paimon res` 下载或更新小派蒙的资源
- `nb paimon update` 更新小派蒙,和`git pull`一样
- `nb paimon logo` 展示小派蒙的logo
- `nb paimon (指令) --help` 查看帮助## TODO
- [x] 更新资源
- [ ] 不依赖git
- [ ] 修改配置
- [ ] 安装小派蒙插件
- [ ] more## 相关项目
- [nb-cli](https://github.com/nonebot/nb-cli)
- [LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)