Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d594d17bf6 | ||
|
|
4e33bf3a50 | ||
|
|
daa40ae8b8 | ||
|
|
21bdb011e0 | ||
|
|
47f3518b04 | ||
|
|
997ce52d69 | ||
|
|
4bc433f049 | ||
|
|
4d6013ca02 | ||
|
|
f09f2c3162 | ||
|
|
67fdbb824b | ||
|
|
b4ccbb0f80 | ||
|
|
6326d888c8 | ||
|
|
e32f3dd22a | ||
|
|
c7e073baea | ||
|
|
1be99ac64d |
@@ -16,6 +16,8 @@ SELF_NICKNAME="小真寻"
|
|||||||
|
|
||||||
# 数据库配置
|
# 数据库配置
|
||||||
# 示例: "postgres://user:password@127.0.0.1:5432/database"
|
# 示例: "postgres://user:password@127.0.0.1:5432/database"
|
||||||
|
# 示例: "mysql://user:password@127.0.0.1:3306/database"
|
||||||
|
# 示例: "sqlite:data/db/zhenxun.db" 在data目录下建立db文件夹
|
||||||
DB_URL = ""
|
DB_URL = ""
|
||||||
|
|
||||||
# 系统代理
|
# 系统代理
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
template: $CHANGES
|
||||||
|
name-template: "v$RESOLVED_VERSION"
|
||||||
|
tag-template: "v$RESOLVED_VERSION"
|
||||||
|
exclude-labels:
|
||||||
|
- reverted
|
||||||
|
- no-changelog
|
||||||
|
- skip-changelog
|
||||||
|
- invalid
|
||||||
|
autolabeler:
|
||||||
|
- label: "bug"
|
||||||
|
title:
|
||||||
|
- "/:bug:.+/"
|
||||||
|
- "/🐛.+/"
|
||||||
|
- label: "enhancement"
|
||||||
|
title:
|
||||||
|
- "/:sparkles:.+/"
|
||||||
|
- "/✨.+/"
|
||||||
|
- label: "ci"
|
||||||
|
files:
|
||||||
|
- .github/**/*
|
||||||
|
- label: "breaking-change"
|
||||||
|
title:
|
||||||
|
- "/.+!:.+/"
|
||||||
|
- label: "documentation"
|
||||||
|
files:
|
||||||
|
- "*.md"
|
||||||
|
- label: "dependencies"
|
||||||
|
files:
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "requirements.txt"
|
||||||
|
- "poetry.lock"
|
||||||
|
title:
|
||||||
|
- "/:wrench:.+/"
|
||||||
|
- "/🔧.+/"
|
||||||
|
- label: "resources"
|
||||||
|
files:
|
||||||
|
- resources/**/*
|
||||||
|
categories:
|
||||||
|
- title: 💥 破坏性变更
|
||||||
|
labels:
|
||||||
|
- breaking-change
|
||||||
|
- title: 🚀 新功能
|
||||||
|
labels:
|
||||||
|
- enhancement
|
||||||
|
- title: 🐛 Bug 修复
|
||||||
|
labels:
|
||||||
|
- bug
|
||||||
|
- title: 📝 文档更新
|
||||||
|
labels:
|
||||||
|
- documentation
|
||||||
|
- title: 👻 自动化程序
|
||||||
|
labels:
|
||||||
|
- chore
|
||||||
|
- internal
|
||||||
|
- maintenance
|
||||||
|
- title: 🚦 测试
|
||||||
|
labels:
|
||||||
|
- test
|
||||||
|
- tests
|
||||||
|
- title: 📦 依赖更新
|
||||||
|
labels:
|
||||||
|
- dependencies
|
||||||
|
collapse-after: 15
|
||||||
|
- title: 💫 杂项
|
||||||
|
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
|
||||||
|
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
|
||||||
|
version-resolver:
|
||||||
|
major:
|
||||||
|
labels:
|
||||||
|
- "major"
|
||||||
|
minor:
|
||||||
|
labels:
|
||||||
|
- "minor"
|
||||||
|
patch:
|
||||||
|
labels:
|
||||||
|
- "patch"
|
||||||
|
default: patch
|
||||||
@@ -3,8 +3,16 @@ name: 检查bot是否运行正常
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["dev", "main"]
|
branches: ["dev", "main"]
|
||||||
|
paths:
|
||||||
|
- zhenxun/**
|
||||||
|
- tests/**
|
||||||
|
- bot.py
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["dev", "main"]
|
branches: ["dev", "main"]
|
||||||
|
paths:
|
||||||
|
- zhenxun/**
|
||||||
|
- tests/**
|
||||||
|
- bot.py
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bot-check:
|
bot-check:
|
||||||
@@ -28,7 +36,14 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pypoetry
|
path: ~/.cache/pypoetry
|
||||||
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
|
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
|
||||||
|
|
||||||
|
- name: Cache playwright cache
|
||||||
|
id: cache-playwright
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/ms-playwright
|
||||||
|
key: playwright-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
|
||||||
|
|
||||||
- name: Cache Data cache
|
- name: Cache Data cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -42,7 +57,9 @@ jobs:
|
|||||||
rm -rf poetry.lock
|
rm -rf poetry.lock
|
||||||
poetry source remove ali
|
poetry source remove ali
|
||||||
poetry install --no-root
|
poetry install --no-root
|
||||||
poetry run pip install pydantic==1.10
|
|
||||||
|
- name: Run tests
|
||||||
|
run: poetry run pytest --cov=zhenxun --cov-report xml
|
||||||
|
|
||||||
- name: Check bot run
|
- name: Check bot run
|
||||||
id: bot_check_run
|
id: bot_check_run
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
name: Release Drafter
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update_release_draft:
|
||||||
|
name: Update Release Draft
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: release-drafter/release-drafter@v6
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
name: Update Version
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
paths:
|
||||||
|
- zhenxun/**
|
||||||
|
- resources/**
|
||||||
|
- bot.py
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
- name: Read current version
|
||||||
|
id: read_version
|
||||||
|
run: |
|
||||||
|
version_line=$(grep '__version__' __version__)
|
||||||
|
version=$(echo $version_line | sed -E 's/__version__:\s*v([0-9]+\.[0-9]+\.[0-9]+)(-.+)?/\1/')
|
||||||
|
echo "Current version: $version"
|
||||||
|
echo "current_version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Check for version file changes
|
||||||
|
id: check_diff
|
||||||
|
run: |
|
||||||
|
if git diff --name-only HEAD~1 HEAD | grep -q '__version__'; then
|
||||||
|
echo "Version file has changes"
|
||||||
|
echo "version_changed=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "Version file has no changes"
|
||||||
|
echo "version_changed=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Get commit hash
|
||||||
|
id: get_commit_hash
|
||||||
|
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Update version file
|
||||||
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
|
run: |
|
||||||
|
current_version="${{ steps.read_version.outputs.current_version }}"
|
||||||
|
commit_hash="${{ steps.get_commit_hash.outputs.commit_hash }}"
|
||||||
|
new_version="v${current_version}-${commit_hash}"
|
||||||
|
echo "Updating version to: $new_version"
|
||||||
|
echo "__version__: $new_version" > __version__
|
||||||
|
git config --global user.name "${{ github.event.pull_request.user.login }}"
|
||||||
|
git config --global user.email "${{ github.event.pull_request.user.login }}@users.noreply.github.com"
|
||||||
|
git add __version__
|
||||||
|
git remote set-url origin https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git
|
||||||
|
git commit -m "chore(version): Update version to $new_version"
|
||||||
|
git push origin HEAD:${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
|
- name: Check updated version
|
||||||
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
|
run: cat __version__
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
name: Update Version
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- .github/workflows/update_version_pr.yml
|
||||||
|
- zhenxun/**
|
||||||
|
- resources/**
|
||||||
|
- bot.py
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Read current version
|
||||||
|
id: read_version
|
||||||
|
run: |
|
||||||
|
version_line=$(grep '__version__' __version__)
|
||||||
|
version=$(echo $version_line | sed -E 's/__version__:\s*v([0-9]+\.[0-9]+\.[0-9]+)(-.+)?/\1/')
|
||||||
|
echo "Current version: $version"
|
||||||
|
echo "current_version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Check for version file changes
|
||||||
|
id: check_diff
|
||||||
|
run: |
|
||||||
|
if git diff --name-only HEAD~1 HEAD | grep -q '__version__'; then
|
||||||
|
echo "Version file has changes"
|
||||||
|
echo "version_changed=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "Version file has no changes"
|
||||||
|
echo "version_changed=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Get commit hash
|
||||||
|
id: get_commit_hash
|
||||||
|
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Update version file
|
||||||
|
id: update_version
|
||||||
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
|
run: |
|
||||||
|
current_version="${{ steps.read_version.outputs.current_version }}"
|
||||||
|
commit_hash="${{ steps.get_commit_hash.outputs.commit_hash }}"
|
||||||
|
new_version="v${current_version}-${commit_hash}"
|
||||||
|
echo "new_version=$new_version" >> $GITHUB_OUTPUT
|
||||||
|
echo "Updating version to: $new_version"
|
||||||
|
echo "__version__: $new_version" > __version__
|
||||||
|
|
||||||
|
- name: Check updated version
|
||||||
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
|
run: cat __version__
|
||||||
|
|
||||||
|
- name: Create or update PR
|
||||||
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
branch: create-pr/update_version
|
||||||
|
title: ":tada: chore(version): 自动更新版本到 ${{ steps.update_version.outputs.new_version }}"
|
||||||
|
body: "This PR updates the version file."
|
||||||
|
commit-message: ":tada: chore(version): Update version to ${{ steps.update_version.outputs.new_version }}"
|
||||||
|
add-paths: __version__
|
||||||
|
author: "AkashiCoin <i@loli.vet>"
|
||||||
|
committer: "${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
labels: automated-update
|
||||||
@@ -174,11 +174,9 @@ data/
|
|||||||
/resources/image/prts/
|
/resources/image/prts/
|
||||||
/configs/config.py
|
/configs/config.py
|
||||||
configs/config.yaml
|
configs/config.yaml
|
||||||
./.env
|
|
||||||
./.env.dev
|
|
||||||
plugins/csgo_server/
|
plugins/csgo_server/
|
||||||
plugins/activity/
|
plugins/activity/
|
||||||
!/resources/image/genshin/alc/back.png
|
!/resources/image/genshin/alc/back.png
|
||||||
!/data/genshin_alc/
|
!/data/genshin_alc/
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
/resources/template/my_info
|
plugins_/
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"charliermarsh.ruff",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"ms-python.black-formatter",
|
||||||
|
"ms-python.isort",
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.vscode-pylance"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -23,7 +23,37 @@
|
|||||||
"ujson",
|
"ujson",
|
||||||
"unban",
|
"unban",
|
||||||
"userinfo",
|
"userinfo",
|
||||||
"zhenxun"
|
"zhenxun",
|
||||||
|
"jsdelivr"
|
||||||
],
|
],
|
||||||
"python.analysis.autoImportCompletions": true
|
"python.analysis.autoImportCompletions": true,
|
||||||
|
"python.testing.pytestArgs": ["tests"],
|
||||||
|
"python.testing.unittestEnabled": false,
|
||||||
|
"python.testing.pytestEnabled": true,
|
||||||
|
"[python]": {
|
||||||
|
"editor.defaultFormatter": "charliermarsh.ruff", // 默认使用 Ruff 格式化
|
||||||
|
"editor.wordBasedSuggestions": "allDocuments",
|
||||||
|
"editor.formatOnType": true,
|
||||||
|
"editor.formatOnSave": true, // 保存时自动格式化
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.ruff": "explicit",
|
||||||
|
"source.organizeImports": "explicit"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ruff.format.preview": false,
|
||||||
|
"isort.check": true,
|
||||||
|
"ruff.importStrategy": "useBundled",
|
||||||
|
"ruff.organizeImports": false,
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[yaml]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[markdown]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,13 @@ WORKDIR /app/zhenxun
|
|||||||
|
|
||||||
COPY . /app/zhenxun
|
COPY . /app/zhenxun
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt upgrade -y && \
|
||||||
|
apt install -y --no-install-recommends \
|
||||||
|
gcc \
|
||||||
|
g++ && \
|
||||||
|
apt clean
|
||||||
|
|
||||||
RUN pip install poetry -i https://mirrors.aliyun.com/pypi/simple/
|
RUN pip install poetry -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
|
||||||
RUN poetry install
|
RUN poetry install
|
||||||
@@ -14,6 +21,8 @@ VOLUME /app/zhenxun/data /app/zhenxun/data
|
|||||||
|
|
||||||
VOLUME /app/zhenxun/resources /app/zhenxun/resources
|
VOLUME /app/zhenxun/resources /app/zhenxun/resources
|
||||||
|
|
||||||
|
VOLUME /app/zhenxun/.env.dev /app/zhenxun/.env.dev
|
||||||
|
|
||||||
RUN poetry run playwright install --with-deps chromium
|
RUN poetry run playwright install --with-deps chromium
|
||||||
|
|
||||||
CMD ["poetry", "run", "python", "bot.py"]
|
CMD ["poetry", "run", "python", "bot.py"]
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<div align=center>
|
<div align=center>
|
||||||
|
|
||||||
## 绪山真寻Bot
|
## 绪山真寻 Bot
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -39,11 +39,12 @@
|
|||||||
:tada:喜欢真寻,于是真寻就来了!:tada:
|
:tada:喜欢真寻,于是真寻就来了!:tada:
|
||||||
|
|
||||||
本项目符合 [OneBot](https://github.com/howmanybots/onebot) 标准,可基于以下项目与机器人框架/平台进行交互
|
本项目符合 [OneBot](https://github.com/howmanybots/onebot) 标准,可基于以下项目与机器人框架/平台进行交互
|
||||||
| 项目地址 | 平台 | 核心作者 | 备注 |
|
|
||||||
| :---: | :---: | :---: | :---: |
|
| 项目地址 | 平台 | 核心作者 | 备注 |
|
||||||
| [LLOneBot](https://github.com/LLOneBot/LLOneBot) | NTQQ | linyuchen | 可用 |
|
| :-----------------------------------------------------------: | :--: | :----------------------: | :--: |
|
||||||
| [Napcat](https://github.com/NapNeko/NapCatQQ) | NTQQ | NapNeko | 可用 |
|
| [LLOneBot](https://github.com/LLOneBot/LLOneBot) | NTQQ | linyuchen | 可用 |
|
||||||
| [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) | | LagrangeDev/Linwenxuan04 | 可用
|
| [Napcat](https://github.com/NapNeko/NapCatQQ) | NTQQ | NapNeko | 可用 |
|
||||||
|
| [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) | NTQQ | LagrangeDev/Linwenxuan04 | 可用 |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -57,8 +58,9 @@
|
|||||||
|
|
||||||
<div align=center>
|
<div align=center>
|
||||||
|
|
||||||
<img width="400" height="400" src="https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/help.png"/>
|
<img width="350" height="350" src="https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/help.png"/>
|
||||||
<img width="250" height="500" src="https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/html_help.png"/>
|
<img width="250" height="500" src="https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/html_help.png"/>
|
||||||
|
<img width="180" height="450" src="https://github.com/HibiKier/zhenxun_bot/blob/dev/docs_image/zhenxun_help.png"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
|
|
||||||
### 1. 体验一下?
|
### 1. 体验一下?
|
||||||
|
|
||||||
这是一个免费的,版本为dev的zhenxun,你可以通过napcat或拉格朗日等直接连接用于体验与测试
|
这是一个免费的,版本为 dev 的 zhenxun,你可以通过 napcat 或拉格朗日等直接连接用于体验与测试
|
||||||
(球球了测试君!)
|
(球球了测试君!)
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -82,16 +84,13 @@ AccessToken: PUBLIC_ZHENXUN_TEST
|
|||||||
|
|
||||||
“不要害怕,你的背后还有千千万万的 <strong>伙伴</strong> 啊!”
|
“不要害怕,你的背后还有千千万万的 <strong>伙伴</strong> 啊!”
|
||||||
|
|
||||||
| 项目名称 | 主要用途 | 仓库作者 | 备注 |
|
| 项目名称 | 主要用途 | 仓库作者 | 备注 |
|
||||||
| :-----------------------------------------------------------------------------------------------: | :------: | :-------------------------------------------: | :-------------------------------------------------------------: |
|
| :--------------------------------------------------------------------: | :------: | :-------------------------------------------------: | :---------------------------: |
|
||||||
| [插件库](https://github.com/zhenxun-org/zhenxun_bot_plugins) | 插件 | [zhenxun-org](https://github.com/zhenxun-org) | 原plugins文件夹插件 |
|
| [插件库](https://github.com/zhenxun-org/zhenxun_bot_plugins) | 插件 | [zhenxun-org](https://github.com/zhenxun-org) | 原 plugins 文件夹插件 |
|
||||||
| [插件索引库](https://github.com/zhenxun-org/zhenxun_bot_plugins_index) | 插件 | [zhenxun-org](https://github.com/zhenxun-org) | 扩展插件索引库 |
|
| [插件索引库](https://github.com/zhenxun-org/zhenxun_bot_plugins_index) | 插件 | [zhenxun-org](https://github.com/zhenxun-org) | 扩展插件索引库 |
|
||||||
| [WebUi](https://github.com/HibiKier/zhenxun_bot_webui) | 管理 | [hibikier](https://github.com/HibiKier) | 基于真寻WebApi的webui实现 |
|
| [一键安装](https://github.com/soloxiaoye2022/zhenxun_bot-deploy) | 安装 | [soloxiaoye2022](https://github.com/soloxiaoye2022) | 第三方 |
|
||||||
| [一键安装](https://github.com/zhenxun-org/zhenxun_bot-deploy) | 安装 | [AkashiCoin](https://github.com/AkashiCoin) | 新版本未测试 |
|
| [WebUi](https://github.com/HibiKier/zhenxun_bot_webui) | 管理 | [hibikier](https://github.com/HibiKier) | 基于真寻 WebApi 的 webui 实现 |
|
||||||
| [Docker单机版](https://github.com/Sakuracio/zhenxun_bot_docker) | 安装 | [zhenxun-org](https://github.com/zhenxun-org) | 新版本未测试 |
|
| [安卓 app(WebUi)](https://github.com/YuS1aN/zhenxun_bot_android_ui) | 安装 | [YuS1aN](https://github.com/YuS1aN) | 第三方 |
|
||||||
| [Docker全量版](https://shields.io/badge/GITHUB-SinKy--Yan-4476AF?logo=github&style=for-the-badge) | 安装 | [zhenxun-org](https://github.com/zhenxun-org) | 包含 真寻Bot PostgreSQL数据库 go-cqhttp webui等(新版本未测试) |
|
|
||||||
|
|
||||||
PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能无法正常启动全量版容器**
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary> <strong> WebUI </strong>后台示例图 </summary>
|
<summary> <strong> WebUI </strong>后台示例图 </summary>
|
||||||
@@ -113,10 +112,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可
|
|||||||
## ~~来点优点?~~ 可爱难道还不够吗
|
## ~~来点优点?~~ 可爱难道还不够吗
|
||||||
|
|
||||||
- 实现了许多功能,且提供了大量功能管理命令
|
- 实现了许多功能,且提供了大量功能管理命令
|
||||||
- 通过Config配置项将所有插件配置统计保存至config.yaml,利于统一用户修改
|
- 通过 Config 配置项将所有插件配置统计保存至 config.yaml,利于统一用户修改
|
||||||
- 方便增删插件,原生nonebot2 matcher,不需要额外修改,仅仅通过简单的配置属性就可以生成`帮助图片`和`帮助信息`
|
- 方便增删插件,原生 nonebot2 matcher,不需要额外修改,仅仅通过简单的配置属性就可以生成`帮助图片`和`帮助信息`
|
||||||
- 提供了cd,阻塞,每日次数等限制,仅仅通过简单的属性就可以生成一个限制,例如:`PluginCdBlock` 等
|
- 提供了 cd,阻塞,每日次数等限制,仅仅通过简单的属性就可以生成一个限制,例如:`PluginCdBlock` 等
|
||||||
- **..... 更多详细请通过`传送门`查看文档!**
|
- **..... 更多详细请通过[[传送门](https://hibikier.github.io/zhenxun_bot/)]查看文档!**
|
||||||
|
|
||||||
## 简单部署
|
## 简单部署
|
||||||
|
|
||||||
@@ -135,9 +134,6 @@ poetry install # 安装依赖
|
|||||||
poetry shell # 进入虚拟环境
|
poetry shell # 进入虚拟环境
|
||||||
python bot.py
|
python bot.py
|
||||||
|
|
||||||
# 在Linux系统,你可能还需要运行此命令安装playwright依赖
|
|
||||||
playwright install-deps
|
|
||||||
|
|
||||||
# 首次后会在data目录下生成config.yaml文件
|
# 首次后会在data目录下生成config.yaml文件
|
||||||
# config.yaml用户配置插件
|
# config.yaml用户配置插件
|
||||||
```
|
```
|
||||||
@@ -159,6 +155,8 @@ playwright install-deps
|
|||||||
'
|
'
|
||||||
# 此处填写你的数据库地址
|
# 此处填写你的数据库地址
|
||||||
# 示例: "postgres://user:password@127.0.0.1:5432/database"
|
# 示例: "postgres://user:password@127.0.0.1:5432/database"
|
||||||
|
# 示例: "mysql://user:password@127.0.0.1:5432/database"
|
||||||
|
# 示例: "sqlite:data/db/zhenxun.db" 在data目录下建立db文件夹
|
||||||
DB_URL = "" # 数据库地址
|
DB_URL = "" # 数据库地址
|
||||||
|
|
||||||
|
|
||||||
@@ -167,7 +165,7 @@ playwright install-deps
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 功能列表 (旧版列表)
|
<!-- ## 功能列表 (旧版列表)
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>已实现的功能</summary>
|
<summary>已实现的功能</summary>
|
||||||
@@ -176,7 +174,7 @@ playwright install-deps
|
|||||||
|
|
||||||
- [x] 昵称系统(群与群与私聊分开.)
|
- [x] 昵称系统(群与群与私聊分开.)
|
||||||
|
|
||||||
- [x] 图灵AI(会把'你'等关键字替换为你的昵称),且带有 [AnimeThesaurus](https://github.com/Kyomotoi/AnimeThesaurus),够味
|
- [x] 图灵 AI(会把'你'等关键字替换为你的昵称),且带有 [AnimeThesaurus](https://github.com/Kyomotoi/AnimeThesaurus),够味
|
||||||
- [x] 签到/我的签到/好感度排行/好感度总排行(影响色图概率和开箱次数,支持配置)
|
- [x] 签到/我的签到/好感度排行/好感度总排行(影响色图概率和开箱次数,支持配置)
|
||||||
- [x] 发送某文件夹下的随机图片(支持自定义,默认:美图,萝莉,壁纸)
|
- [x] 发送某文件夹下的随机图片(支持自定义,默认:美图,萝莉,壁纸)
|
||||||
- [x] 色图(这不是基础功能嘛喂)
|
- [x] 色图(这不是基础功能嘛喂)
|
||||||
@@ -185,12 +183,12 @@ playwright install-deps
|
|||||||
- [x] 鸡汤/语录
|
- [x] 鸡汤/语录
|
||||||
- [x] 骂我(钉宫语音)
|
- [x] 骂我(钉宫语音)
|
||||||
- [x] 戳一戳(概率发送美图,钉宫语音或者戳回去)
|
- [x] 戳一戳(概率发送美图,钉宫语音或者戳回去)
|
||||||
- [x] 模拟开箱/我的开箱/群开箱统计/我的金色/设置cookie(csgo,内置爬虫脚本,需要提前抓取数据和图片,需要session,可能需要代理,阿里云服务器等ip也许已经被ban了(我无代理访问失败),如果访问太多账号API调用可能被禁止访问api!)
|
- [x] 模拟开箱/我的开箱/群开箱统计/我的金色/设置 cookie(csgo,内置爬虫脚本,需要提前抓取数据和图片,需要 session,可能需要代理,阿里云服务器等 ip 也许已经被 ban 了(我无代理访问失败),如果访问太多账号 API 调用可能被禁止访问 api!)
|
||||||
- [x] 鲁迅说过
|
- [x] 鲁迅说过
|
||||||
- [x] 构造假消息(自定义的分享链接)
|
- [x] 构造假消息(自定义的分享链接)
|
||||||
- [x] 商店/我的金币/购买道具/使用道具
|
- [x] 商店/我的金币/购买道具/使用道具
|
||||||
- [x] 8种手游抽卡 (查看 [nonebot_plugin_gamedraw](https://github.com/HibiKier/nonebot_plugin_gamedraw))
|
- [x] 8 种手游抽卡 (查看 [nonebot_plugin_gamedraw](https://github.com/HibiKier/nonebot_plugin_gamedraw))
|
||||||
- [x] 我有一个朋友想问问..(借鉴pcrbot插件)
|
- [x] 我有一个朋友想问问..(借鉴 pcrbot 插件)
|
||||||
- [x] 原神黄历
|
- [x] 原神黄历
|
||||||
- [x] 原神今日素材
|
- [x] 原神今日素材
|
||||||
- [x] 原神资源查询 (借鉴[Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot)插件)
|
- [x] 原神资源查询 (借鉴[Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot)插件)
|
||||||
@@ -200,37 +198,37 @@ playwright install-deps
|
|||||||
- [x] 原神签到/自动签到
|
- [x] 原神签到/自动签到
|
||||||
- [x] 金币红包
|
- [x] 金币红包
|
||||||
- [x] 微博热搜
|
- [x] 微博热搜
|
||||||
- [x] B站主播/UP/番剧订阅
|
- [x] B 站主播/UP/番剧订阅
|
||||||
|
|
||||||
- [x] pil对图片的一些操作
|
- [x] pil 对图片的一些操作
|
||||||
- [x] BUFF饰品底价查询(需要session)
|
- [x] BUFF 饰品底价查询(需要 session)
|
||||||
- [x] 天气查询
|
- [x] 天气查询
|
||||||
- [x] 疫情查询
|
- [x] 疫情查询
|
||||||
- [x] bt磁力搜索(咳咳,这功能我想dddd)
|
- [x] bt 磁力搜索(咳咳,这功能我想 dddd)
|
||||||
- [x] reimu搜索(上车) (使用[XUN_Langskip](https://github.com/Angel-Hair/XUN_Bot)的插件)
|
- [x] reimu 搜索(上车) (使用[XUN_Langskip](https://github.com/Angel-Hair/XUN_Bot)的插件)
|
||||||
- [x] 靠图识番 (使用[XUN_Langskip](https://github.com/Angel-Hair/XUN_Bot)的插件)
|
- [x] 靠图识番 (使用[XUN_Langskip](https://github.com/Angel-Hair/XUN_Bot)的插件)
|
||||||
- [x] 以图搜图 (使用[nonebot_plugin_picsearcher](https://github.com/synodriver/nonebot_plugin_picsearcher)插件)
|
- [x] 以图搜图 (使用[nonebot_plugin_picsearcher](https://github.com/synodriver/nonebot_plugin_picsearcher)插件)
|
||||||
- [x] 搜番
|
- [x] 搜番
|
||||||
- [x] 点歌 [nonebot_plugin_songpicker2](https://github.com/maxesisn/nonebot_plugin_songpicker2)插件(删除了选歌和评论)
|
- [x] 点歌 [nonebot_plugin_songpicker2](https://github.com/maxesisn/nonebot_plugin_songpicker2)插件(删除了选歌和评论)
|
||||||
- [x] epic免费游戏
|
- [x] epic 免费游戏
|
||||||
- [x] p站排行榜
|
- [x] p 站排行榜
|
||||||
- [x] p站搜图
|
- [x] p 站搜图
|
||||||
- [x] 翻译(日英韩)
|
- [x] 翻译(日英韩)
|
||||||
- [x] pix图库(一个自己的图库,含有增删查改,黑名单等命令)
|
- [x] pix 图库(一个自己的图库,含有增删查改,黑名单等命令)
|
||||||
|
|
||||||
- [x] 查看当前群欢迎消息
|
- [x] 查看当前群欢迎消息
|
||||||
- [x] 查看该群自己的权限
|
- [x] 查看该群自己的权限
|
||||||
- [x] 我的信息(只是为了看看什么时候入群)
|
- [x] 我的信息(只是为了看看什么时候入群)
|
||||||
- [x] 更新信息(如果继续更新的话)
|
- [x] 更新信息(如果继续更新的话)
|
||||||
- [x] go-cqhttp最新版下载和上传(不需要请删除)
|
- [x] go-cqhttp 最新版下载和上传(不需要请删除)
|
||||||
- [x] 撤回
|
- [x] 撤回
|
||||||
- [x] 滴滴滴-(用户对超级用户发送消息)
|
- [x] 滴滴滴-(用户对超级用户发送消息)
|
||||||
- [x] 金币红包/金币排行
|
- [x] 金币红包/金币排行
|
||||||
- [x] 俄罗斯轮盘/胜场排行/败场排行/欧洲人排行/慈善家排行
|
- [x] 俄罗斯轮盘/胜场排行/败场排行/欧洲人排行/慈善家排行
|
||||||
- [x] 网易云热评
|
- [x] 网易云热评
|
||||||
- [x] 念首古诗
|
- [x] 念首古诗
|
||||||
- [x] 获取b站视频封面
|
- [x] 获取 b 站视频封面
|
||||||
- [x] 通过PID获取图片
|
- [x] 通过 PID 获取图片
|
||||||
- [x] 功能统计可视化
|
- [x] 功能统计可视化
|
||||||
- [x] 词云
|
- [x] 词云
|
||||||
- [x] 关于
|
- [x] 关于
|
||||||
@@ -242,12 +240,12 @@ playwright install-deps
|
|||||||
- [x] 95%的群功能开关
|
- [x] 95%的群功能开关
|
||||||
- [x] 查看群内被动技能状态
|
- [x] 查看群内被动技能状态
|
||||||
- [x] 自定义群欢迎消息(是真寻的不是管家的!)
|
- [x] 自定义群欢迎消息(是真寻的不是管家的!)
|
||||||
- [x] .ban/.unban(支持设置ban时长)= 黑白名单
|
- [x] .ban/.unban(支持设置 ban 时长)= 黑白名单
|
||||||
- [x] 刷屏禁言相关:刷屏检测设置/设置禁言时长/设置检测次数
|
- [x] 刷屏禁言相关:刷屏检测设置/设置禁言时长/设置检测次数
|
||||||
- [x] 上传图片/连续上传图片 (上传图片至指定图库)
|
- [x] 上传图片/连续上传图片 (上传图片至指定图库)
|
||||||
- [x] 移动图片 (同上)
|
- [x] 移动图片 (同上)
|
||||||
- [x] 删除图片 (同上)
|
- [x] 删除图片 (同上)
|
||||||
- [x] 群内B站订阅
|
- [x] 群内 B 站订阅
|
||||||
- [x] 词条设置
|
- [x] 词条设置
|
||||||
- [x] 休息吧/醒来
|
- [x] 休息吧/醒来
|
||||||
|
|
||||||
@@ -267,17 +265,17 @@ playwright install-deps
|
|||||||
- [x] 修改群权限
|
- [x] 修改群权限
|
||||||
- [x] ban
|
- [x] ban
|
||||||
- [x] 更新色图
|
- [x] 更新色图
|
||||||
- [x] 更新价格/更加图片(csgo开箱)
|
- [x] 更新价格/更加图片(csgo 开箱)
|
||||||
- [x] 重载原神/方舟/赛马娘/坎公骑冠剑卡池
|
- [x] 重载原神/方舟/赛马娘/坎公骑冠剑卡池
|
||||||
- [x] 更新原神今日素材/更新原神资源信息
|
- [x] 更新原神今日素材/更新原神资源信息
|
||||||
- [x] PIX相关操作
|
- [x] PIX 相关操作
|
||||||
- [x] 检查更新真寻
|
- [x] 检查更新真寻
|
||||||
- [x] 重启
|
- [x] 重启
|
||||||
- [x] 添加/删除/查看群白名单
|
- [x] 添加/删除/查看群白名单
|
||||||
- [x] 功能开关(更多设置)
|
- [x] 功能开关(更多设置)
|
||||||
- [x] 功能状态
|
- [x] 功能状态
|
||||||
- [x] b了
|
- [x] b 了
|
||||||
- [x] 执行sql
|
- [x] 执行 sql
|
||||||
- [x] 重载配置
|
- [x] 重载配置
|
||||||
- [x] 清理临时数据
|
- [x] 清理临时数据
|
||||||
- [x] 增删群认证
|
- [x] 增删群认证
|
||||||
@@ -296,9 +294,9 @@ playwright install-deps
|
|||||||
|
|
||||||
- [x] 群早晚安
|
- [x] 群早晚安
|
||||||
- [x] 每日开箱重置提醒
|
- [x] 每日开箱重置提醒
|
||||||
- [x] b站转发解析(解析b站分享信息,支持bv,bilibili链接,b站手机端转发卡片,cv,b23.tv),且5分钟内不解析相同url
|
- [x] b 站转发解析(解析 b 站分享信息,支持 bv,bilibili 链接,b 站手机端转发卡片,cv,b23.tv),且 5 分钟内不解析相同 url
|
||||||
- [x] 丢人爬(爬表情包)
|
- [x] 丢人爬(爬表情包)
|
||||||
- [x] epic通知(每日发送epic免费游戏链接)
|
- [x] epic 通知(每日发送 epic 免费游戏链接)
|
||||||
- [x] 原神黄历提醒
|
- [x] 原神黄历提醒
|
||||||
- [x] 复读
|
- [x] 复读
|
||||||
|
|
||||||
@@ -307,15 +305,15 @@ playwright install-deps
|
|||||||
- [x] 刷屏禁言检测
|
- [x] 刷屏禁言检测
|
||||||
|
|
||||||
- [x] 功能调用统计
|
- [x] 功能调用统计
|
||||||
- [x] 检测恶意触发命令(将被最高权限ban掉30分钟,只有最高权限(9级)可以进行unban)
|
- [x] 检测恶意触发命令(将被最高权限 ban 掉 30 分钟,只有最高权限(9 级)可以进行 unban)
|
||||||
- [x] 自动同意好友请求,加群请求将会提醒管理员,退群提示,加群欢迎等等
|
- [x] 自动同意好友请求,加群请求将会提醒管理员,退群提示,加群欢迎等等
|
||||||
- [x] 群聊时间检测(当群聊最后一人发言时间大于当前36小时后将关闭该群所有通知(即被动技能))
|
- [x] 群聊时间检测(当群聊最后一人发言时间大于当前 36 小时后将关闭该群所有通知(即被动技能))
|
||||||
- [x] 群管理员监控,自动为新晋管理员增加权限,为失去群管理员的用户删除权限
|
- [x] 群管理员监控,自动为新晋管理员增加权限,为失去群管理员的用户删除权限
|
||||||
- [x] 群权限系统
|
- [x] 群权限系统
|
||||||
- [x] 定时更新权限
|
- [x] 定时更新权限
|
||||||
- [x] 自动配置重载
|
- [x] 自动配置重载
|
||||||
|
|
||||||
</details>
|
</details> -->
|
||||||
|
|
||||||
## [爱发电](https://afdian.net/@HibiKier)
|
## [爱发电](https://afdian.net/@HibiKier)
|
||||||
|
|
||||||
@@ -325,7 +323,7 @@ playwright install-deps
|
|||||||
|
|
||||||
### 感谢名单
|
### 感谢名单
|
||||||
|
|
||||||
(可以告诉我你的 **github** 地址,我偷偷换掉0v|)
|
(可以告诉我你的 **github** 地址,我偷偷换掉 0v|)
|
||||||
|
|
||||||
[shenqi](https://afdian.net/u/fa923a8cfe3d11eba61752540025c377)
|
[shenqi](https://afdian.net/u/fa923a8cfe3d11eba61752540025c377)
|
||||||
[A_Kyuu](https://afdian.net/u/b83954fc2c1211eba9eb52540025c377)
|
[A_Kyuu](https://afdian.net/u/b83954fc2c1211eba9eb52540025c377)
|
||||||
@@ -343,13 +341,13 @@ playwright install-deps
|
|||||||
[本喵无敌哒](https://afdian.net/u/dffaa9005bc911ebb69b52540025c377)
|
[本喵无敌哒](https://afdian.net/u/dffaa9005bc911ebb69b52540025c377)
|
||||||
[椎名冬羽](https://afdian.net/u/ca1ebd64395e11ed81b452540025c377)
|
[椎名冬羽](https://afdian.net/u/ca1ebd64395e11ed81b452540025c377)
|
||||||
[kaito](https://afdian.net/u/a055e20a498811eab1f052540025c377)
|
[kaito](https://afdian.net/u/a055e20a498811eab1f052540025c377)
|
||||||
[笑柒XIAO_Q7](https://afdian.net/u/4696db5c529111ec84ea52540025c377)
|
[笑柒 XIAO_Q7](https://afdian.net/u/4696db5c529111ec84ea52540025c377)
|
||||||
[请问一份爱多少钱](https://afdian.net/u/f57ef6602dbd11ed977f52540025c377)
|
[请问一份爱多少钱](https://afdian.net/u/f57ef6602dbd11ed977f52540025c377)
|
||||||
[咸鱼鱼鱼鱼](https://afdian.net/u/8e39b9a400e011ed9f4a52540025c377)
|
[咸鱼鱼鱼鱼](https://afdian.net/u/8e39b9a400e011ed9f4a52540025c377)
|
||||||
[Kafka](https://afdian.net/u/41d66798ef6911ecbc5952540025c377)
|
[Kafka](https://afdian.net/u/41d66798ef6911ecbc5952540025c377)
|
||||||
[墨然](https://afdian.net/u/8aa5874a644d11eb8a6752540025c377)
|
[墨然](https://afdian.net/u/8aa5874a644d11eb8a6752540025c377)
|
||||||
[爱发电用户\_T9e4](https://afdian.net/u/2ad1bb82f3a711eca22852540025c377)
|
[爱发电用户\_T9e4](https://afdian.net/u/2ad1bb82f3a711eca22852540025c377)
|
||||||
[笑柒XIAO_Q7](https://afdian.net/u/4696db5c529111ec84ea52540025c377)
|
[笑柒 XIAO_Q7](https://afdian.net/u/4696db5c529111ec84ea52540025c377)
|
||||||
[noahzark](https://afdian.net/a/noahzark)
|
[noahzark](https://afdian.net/a/noahzark)
|
||||||
[腊条](https://afdian.net/u/f739c4d69eca11eba94b52540025c377)
|
[腊条](https://afdian.net/u/f739c4d69eca11eba94b52540025c377)
|
||||||
[ze roller](https://afdian.net/u/0e599e96257211ed805152540025c377)
|
[ze roller](https://afdian.net/u/0e599e96257211ed805152540025c377)
|
||||||
@@ -374,11 +372,11 @@ playwright install-deps
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 更新
|
<!-- ## 更新
|
||||||
|
|
||||||
### 2024/8/11
|
### 2024/8/11
|
||||||
|
|
||||||
- 更新dev
|
- 更新 dev -->
|
||||||
|
|
||||||
<!-- ### 2024/1/25
|
<!-- ### 2024/1/25
|
||||||
|
|
||||||
@@ -820,20 +818,20 @@ playwright install-deps
|
|||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|
||||||
- [x] web管理
|
- [x] web 管理
|
||||||
|
|
||||||
## 感谢
|
## 感谢
|
||||||
|
|
||||||
[botuniverse / onebot](https://github.com/botuniverse/onebot) :超棒的机器人协议
|
[botuniverse / onebot](https://github.com/botuniverse/onebot) :超棒的机器人协议
|
||||||
[Mrs4s / go-cqhttp](https://github.com/Mrs4s/go-cqhttp) :cqhttp的golang实现,轻量、原生跨平台.
|
[Mrs4s / go-cqhttp](https://github.com/Mrs4s/go-cqhttp) :cqhttp 的 golang 实现,轻量、原生跨平台.
|
||||||
[nonebot / nonebot2](https://github.com/nonebot/nonebot2) :跨平台Python异步机器人框架
|
[nonebot / nonebot2](https://github.com/nonebot/nonebot2) :跨平台 Python 异步机器人框架
|
||||||
[Angel-Hair / XUN_Bot](https://github.com/Angel-Hair/XUN_Bot) :一个基于NoneBot和酷Q的功能性QQ机器人
|
[Angel-Hair / XUN_Bot](https://github.com/Angel-Hair/XUN_Bot) :一个基于 NoneBot 和酷 Q 的功能性 QQ 机器人
|
||||||
[pcrbot / cappuccilo_plugins](https://github.com/pcrbot/cappuccilo_plugins) :hoshino插件合集
|
[pcrbot / cappuccilo_plugins](https://github.com/pcrbot/cappuccilo_plugins) :hoshino 插件合集
|
||||||
[MeetWq /nonebot-plugin-withdraw](https://github.com/MeetWq/nonebot-plugin-withdraw) :A simple withdraw plugin for Nonebot2
|
[MeetWq /nonebot-plugin-withdraw](https://github.com/MeetWq/nonebot-plugin-withdraw) :A simple withdraw plugin for Nonebot2
|
||||||
[maxesisn / nonebot_plugin_songpicker2](https://github.com/maxesisn/nonebot_plugin_songpicker2) :适用于nonebot2的点歌插件
|
[maxesisn / nonebot_plugin_songpicker2](https://github.com/maxesisn/nonebot_plugin_songpicker2) :适用于 nonebot2 的点歌插件
|
||||||
[nonepkg / nonebot-plugin-manager](https://github.com/nonepkg/nonebot-plugin-manager) :Nonebot Plugin Manager base on import hook
|
[nonepkg / nonebot-plugin-manager](https://github.com/nonepkg/nonebot-plugin-manager) :Nonebot Plugin Manager base on import hook
|
||||||
[H-K-Y / Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot) :原神bot,这是一个基于nonebot和HoshinoBot的原神娱乐及信息查询插件
|
[H-K-Y / Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot) :原神 bot,这是一个基于 nonebot 和 HoshinoBot 的原神娱乐及信息查询插件
|
||||||
[NothAmor / nonebot2_luxun_says](https://github.com/NothAmor/nonebot2_luxun_says) :基于nonebot2机器人框架的鲁迅说插件
|
[NothAmor / nonebot2_luxun_says](https://github.com/NothAmor/nonebot2_luxun_says) :基于 nonebot2 机器人框架的鲁迅说插件
|
||||||
[Kyomotoi / AnimeThesaurus](https://github.com/Kyomotoi/AnimeThesaurus) :一个~~特二刺螈~~(文爱)的适用于任何bot的词库
|
[Kyomotoi / AnimeThesaurus](https://github.com/Kyomotoi/AnimeThesaurus) :一个~~特二刺螈~~(文爱)的适用于任何 bot 的词库
|
||||||
[Ailitonia / omega-miya](https://github.com/Ailitonia/omega-miya) :基于nonebot2的qq机器人
|
[Ailitonia / omega-miya](https://github.com/Ailitonia/omega-miya) :基于 nonebot2 的 qq 机器人
|
||||||
[KimigaiiWuyi / GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID) :一个基于HoshinoBot/NoneBot2的原神UID查询插件
|
[KimigaiiWuyi / GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID) :一个基于 HoshinoBot/NoneBot2 的原神 UID 查询插件
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__: v0.2.2
|
__version__: v0.2.4
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
|
|||||||
|
|
||||||
nonebot.init()
|
nonebot.init()
|
||||||
|
|
||||||
from zhenxun.services.db_context import disconnect, init
|
|
||||||
|
|
||||||
driver = nonebot.get_driver()
|
driver = nonebot.get_driver()
|
||||||
driver.register_adapter(OneBotV11Adapter)
|
driver.register_adapter(OneBotV11Adapter)
|
||||||
@@ -15,6 +14,7 @@ driver.register_adapter(KaiheilaAdapter)
|
|||||||
driver.register_adapter(DoDoAdapter)
|
driver.register_adapter(DoDoAdapter)
|
||||||
# driver.register_adapter(DiscordAdapter)
|
# driver.register_adapter(DiscordAdapter)
|
||||||
|
|
||||||
|
from zhenxun.services.db_context import init, disconnect
|
||||||
|
|
||||||
driver.on_startup(init)
|
driver.on_startup(init)
|
||||||
driver.on_shutdown(disconnect)
|
driver.on_shutdown(disconnect)
|
||||||
|
|||||||
|
After Width: | Height: | Size: 917 KiB |
@@ -47,7 +47,10 @@ dateparser = "^1.2.0"
|
|||||||
bilireq = "0.2.3post0"
|
bilireq = "0.2.3post0"
|
||||||
python-jose = { extras = ["cryptography"], version = "^3.3.0" }
|
python-jose = { extras = ["cryptography"], version = "^3.3.0" }
|
||||||
python-multipart = "^0.0.9"
|
python-multipart = "^0.0.9"
|
||||||
nonebot-plugin-alconna = "0.51.1"
|
aiocache = "^0.12.2"
|
||||||
|
py-cpuinfo = "^9.0.0"
|
||||||
|
nonebot-plugin-uninfo = "^0.4.1"
|
||||||
|
nonebot-plugin-alconna = "^0.53.1"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
nonebug = "^0.3.2"
|
nonebug = "^0.3.2"
|
||||||
@@ -134,6 +137,9 @@ typeCheckingMode = "standard"
|
|||||||
reportShadowedImports = false
|
reportShadowedImports = false
|
||||||
disableBytesTypePromotions = true
|
disableBytesTypePromotions = true
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
asyncio_mode = "auto"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 282 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 220 KiB |
|
Before Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |