mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2025-04-20 05:39:54 +08:00
fmt
This commit is contained in:
parent
0826daf410
commit
4d0a32ca0e
|
@ -138,7 +138,11 @@ impl PluginConfigFile {
|
||||||
let plugins = PyStatus::get_mut();
|
let plugins = PyStatus::get_mut();
|
||||||
|
|
||||||
fn fmt_bool(b: bool) -> String {
|
fn fmt_bool(b: bool) -> String {
|
||||||
if b { "启用".green().to_string() } else { "禁用".red().to_string() }
|
if b {
|
||||||
|
"启用".green().to_string()
|
||||||
|
} else {
|
||||||
|
"禁用".red().to_string()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.files.iter_mut().for_each(|(path, status)| {
|
plugins.files.iter_mut().for_each(|(path, status)| {
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
> 出于某个企鹅, 和保护 作者 和 原项目 ( ica ) 的原因 \
|
> 出于某个企鹅, 和保护 作者 和 原项目 ( ica ) 的原因 \
|
||||||
> 功能请自行理解
|
> 功能请自行理解
|
||||||
|
|
||||||
|
[插件市场(确信)](https://github.com/shenjackyuanjie/shenbot-plugins)
|
||||||
|
|
||||||
## 通用环境准备
|
## 通用环境准备
|
||||||
|
|
||||||
- 安装 Python 3.8+
|
- 安装 Python 3.8+
|
||||||
|
@ -15,6 +17,8 @@
|
||||||
choco install python
|
choco install python
|
||||||
# 或者
|
# 或者
|
||||||
scoop install python
|
scoop install python
|
||||||
|
# 又或者
|
||||||
|
uv venv
|
||||||
```
|
```
|
||||||
|
|
||||||
- 启动 icalingua 后端
|
- 启动 icalingua 后端
|
||||||
|
|
Loading…
Reference in New Issue
Block a user