Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e33bf3a50 | ||
|
|
daa40ae8b8 | ||
|
|
21bdb011e0 | ||
|
|
47f3518b04 | ||
|
|
997ce52d69 | ||
|
|
4bc433f049 | ||
|
|
4d6013ca02 | ||
|
|
f09f2c3162 | ||
|
|
67fdbb824b | ||
|
|
b4ccbb0f80 | ||
|
|
6326d888c8 | ||
|
|
e32f3dd22a | ||
|
|
c7e073baea | ||
|
|
1be99ac64d |
@@ -8,19 +8,12 @@ NICKNAME=["真寻", "小真寻", "绪山真寻", "小寻子"]
|
|||||||
|
|
||||||
SESSION_EXPIRE_TIMEOUT=30
|
SESSION_EXPIRE_TIMEOUT=30
|
||||||
|
|
||||||
ALCONNA_USE_COMMAND_START=True
|
|
||||||
|
|
||||||
# 全局图片统一使用bytes发送,当真寻与协议端不在同一服务器上时为True
|
# 全局图片统一使用bytes发送,当真寻与协议端不在同一服务器上时为True
|
||||||
IMAGE_TO_BYTES = True
|
IMAGE_TO_BYTES = False
|
||||||
|
|
||||||
# 回复消息时自称
|
# 回复消息时自称
|
||||||
SELF_NICKNAME="小真寻"
|
SELF_NICKNAME="小真寻"
|
||||||
|
|
||||||
# 官bot appid:bot账号
|
|
||||||
QBOT_ID_DATA = '{
|
|
||||||
|
|
||||||
}'
|
|
||||||
|
|
||||||
# 数据库配置
|
# 数据库配置
|
||||||
# 示例: "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"
|
# 示例: "mysql://user:password@127.0.0.1:3306/database"
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
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 }}
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
name: Update Version
|
name: Update Version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request_target:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/update_version_pr.yml
|
|
||||||
- zhenxun/**
|
- zhenxun/**
|
||||||
- resources/**
|
- resources/**
|
||||||
- bot.py
|
- bot.py
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- dev
|
- dev
|
||||||
@@ -18,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Read current version
|
- name: Read current version
|
||||||
id: read_version
|
id: read_version
|
||||||
@@ -44,30 +46,20 @@ jobs:
|
|||||||
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update version file
|
- name: Update version file
|
||||||
id: update_version
|
|
||||||
if: steps.check_diff.outputs.version_changed == 'false'
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
run: |
|
run: |
|
||||||
current_version="${{ steps.read_version.outputs.current_version }}"
|
current_version="${{ steps.read_version.outputs.current_version }}"
|
||||||
commit_hash="${{ steps.get_commit_hash.outputs.commit_hash }}"
|
commit_hash="${{ steps.get_commit_hash.outputs.commit_hash }}"
|
||||||
new_version="v${current_version}-${commit_hash}"
|
new_version="v${current_version}-${commit_hash}"
|
||||||
echo "new_version=$new_version" >> $GITHUB_OUTPUT
|
|
||||||
echo "Updating version to: $new_version"
|
echo "Updating version to: $new_version"
|
||||||
echo "__version__: $new_version" > __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
|
- name: Check updated version
|
||||||
if: steps.check_diff.outputs.version_changed == 'false'
|
if: steps.check_diff.outputs.version_changed == 'false'
|
||||||
run: cat __version__
|
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
|
|
||||||
@@ -13,13 +13,11 @@
|
|||||||
"getbbox",
|
"getbbox",
|
||||||
"hibiapi",
|
"hibiapi",
|
||||||
"httpx",
|
"httpx",
|
||||||
"jsdelivr",
|
|
||||||
"kaiheila",
|
"kaiheila",
|
||||||
"lolicon",
|
"lolicon",
|
||||||
"nonebot",
|
"nonebot",
|
||||||
"onebot",
|
"onebot",
|
||||||
"pixiv",
|
"pixiv",
|
||||||
"qbot",
|
|
||||||
"Setu",
|
"Setu",
|
||||||
"tobytes",
|
"tobytes",
|
||||||
"ujson",
|
"ujson",
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
| :-----------------------------------------------------------: | :--: | :----------------------: | :--: |
|
| :-----------------------------------------------------------: | :--: | :----------------------: | :--: |
|
||||||
| [LLOneBot](https://github.com/LLOneBot/LLOneBot) | NTQQ | linyuchen | 可用 |
|
| [LLOneBot](https://github.com/LLOneBot/LLOneBot) | NTQQ | linyuchen | 可用 |
|
||||||
| [Napcat](https://github.com/NapNeko/NapCatQQ) | NTQQ | NapNeko | 可用 |
|
| [Napcat](https://github.com/NapNeko/NapCatQQ) | NTQQ | NapNeko | 可用 |
|
||||||
| [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) | NTQQ | LagrangeDev/Linwenxuan04 | 可用 |
|
| [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) | | LagrangeDev/Linwenxuan04 | 可用 |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<img width="350" height="350" 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://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/zhenxun_help.png"/>
|
<img width="180" height="450" src="https://github.com/HibiKier/zhenxun_bot/blob/dev/docs_image/zhenxun_help.png"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -68,11 +68,11 @@
|
|||||||
|
|
||||||
### 1. 体验一下?
|
### 1. 体验一下?
|
||||||
|
|
||||||
这是一个免费的,版本为 dev 的 zhenxun,你可以通过 [napcat](https://github.com/NapNeko/NapCatQQ) 或 [拉格朗日](https://github.com/LagrangeDev/Lagrange.Core) 以及 [matcha](https://github.com/A-kirami/matcha) 等直接连接用于体验与测试
|
这是一个免费的,版本为 dev 的 zhenxun,你可以通过 napcat 或拉格朗日等直接连接用于体验与测试
|
||||||
(球球了测试君!)
|
(球球了测试君!)
|
||||||
|
|
||||||
```
|
```
|
||||||
Url: ws://test.zhenxun.org:8080/onebot/v11/ws
|
Url: 43.143.112.57:11451/onebot/v11/ws
|
||||||
AccessToken: PUBLIC_ZHENXUN_TEST
|
AccessToken: PUBLIC_ZHENXUN_TEST
|
||||||
|
|
||||||
注:你无法获得超级用户权限
|
注:你无法获得超级用户权限
|
||||||
@@ -95,14 +95,13 @@ AccessToken: PUBLIC_ZHENXUN_TEST
|
|||||||
<details>
|
<details>
|
||||||
<summary> <strong> WebUI </strong>后台示例图 </summary>
|
<summary> <strong> WebUI </strong>后台示例图 </summary>
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -112,8 +111,7 @@ AccessToken: PUBLIC_ZHENXUN_TEST
|
|||||||
|
|
||||||
## ~~来点优点?~~ 可爱难道还不够吗
|
## ~~来点优点?~~ 可爱难道还不够吗
|
||||||
|
|
||||||
- 实现了许多功能,且提供了大量功能管理命令,进行了多平台适配,兼容 nb2 商店插件
|
- 实现了许多功能,且提供了大量功能管理命令
|
||||||
- 拥有完善可用的 webui
|
|
||||||
- 通过 Config 配置项将所有插件配置统计保存至 config.yaml,利于统一用户修改
|
- 通过 Config 配置项将所有插件配置统计保存至 config.yaml,利于统一用户修改
|
||||||
- 方便增删插件,原生 nonebot2 matcher,不需要额外修改,仅仅通过简单的配置属性就可以生成`帮助图片`和`帮助信息`
|
- 方便增删插件,原生 nonebot2 matcher,不需要额外修改,仅仅通过简单的配置属性就可以生成`帮助图片`和`帮助信息`
|
||||||
- 提供了 cd,阻塞,每日次数等限制,仅仅通过简单的属性就可以生成一个限制,例如:`PluginCdBlock` 等
|
- 提供了 cd,阻塞,每日次数等限制,仅仅通过简单的属性就可以生成一个限制,例如:`PluginCdBlock` 等
|
||||||
@@ -167,97 +165,161 @@ python bot.py
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 功能列表
|
<!-- ## 功能列表 (旧版列表)
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>内置功能</summary>
|
<summary>已实现的功能</summary>
|
||||||
|
|
||||||
**真寻原 `plugins` 插件文件夹已迁移至其他仓库,当前内置仅保留必要的功能**
|
### 已实现的常用功能
|
||||||
|
|
||||||
### 基础功能
|
- [x] 昵称系统(群与群与私聊分开.)
|
||||||
|
|
||||||
- [x] 昵称系统(群与群与私聊分开)
|
- [x] 图灵 AI(会把'你'等关键字替换为你的昵称),且带有 [AnimeThesaurus](https://github.com/Kyomotoi/AnimeThesaurus),够味
|
||||||
- [x] 签到/我的签到/好感度排行/好感度总排行(影响色图概率和开箱次数,支持配置)
|
- [x] 签到/我的签到/好感度排行/好感度总排行(影响色图概率和开箱次数,支持配置)
|
||||||
- [x] 商店/我的金币/购买道具/使用道具/金币排行(完整的商店添加/购买/使用流程)
|
- [x] 发送某文件夹下的随机图片(支持自定义,默认:美图,萝莉,壁纸)
|
||||||
|
- [x] 色图(这不是基础功能嘛喂)
|
||||||
|
- [x] coser
|
||||||
|
- [x] 黑白草图生成器
|
||||||
|
- [x] 鸡汤/语录
|
||||||
|
- [x] 骂我(钉宫语音)
|
||||||
|
- [x] 戳一戳(概率发送美图,钉宫语音或者戳回去)
|
||||||
|
- [x] 模拟开箱/我的开箱/群开箱统计/我的金色/设置 cookie(csgo,内置爬虫脚本,需要提前抓取数据和图片,需要 session,可能需要代理,阿里云服务器等 ip 也许已经被 ban 了(我无代理访问失败),如果访问太多账号 API 调用可能被禁止访问 api!)
|
||||||
|
- [x] 鲁迅说过
|
||||||
|
- [x] 构造假消息(自定义的分享链接)
|
||||||
|
- [x] 商店/我的金币/购买道具/使用道具
|
||||||
|
- [x] 8 种手游抽卡 (查看 [nonebot_plugin_gamedraw](https://github.com/HibiKier/nonebot_plugin_gamedraw))
|
||||||
|
- [x] 我有一个朋友想问问..(借鉴 pcrbot 插件)
|
||||||
|
- [x] 原神黄历
|
||||||
|
- [x] 原神今日素材
|
||||||
|
- [x] 原神资源查询 (借鉴[Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot)插件)
|
||||||
|
- [x] 原神便笺查询
|
||||||
|
- [x] 原神玩家查询
|
||||||
|
- [x] 原神树脂提醒
|
||||||
|
- [x] 原神签到/自动签到
|
||||||
|
- [x] 金币红包
|
||||||
|
- [x] 微博热搜
|
||||||
|
- [x] B 站主播/UP/番剧订阅
|
||||||
|
|
||||||
|
- [x] pil 对图片的一些操作
|
||||||
|
- [x] BUFF 饰品底价查询(需要 session)
|
||||||
|
- [x] 天气查询
|
||||||
|
- [x] 疫情查询
|
||||||
|
- [x] bt 磁力搜索(咳咳,这功能我想 dddd)
|
||||||
|
- [x] reimu 搜索(上车) (使用[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] 搜番
|
||||||
|
- [x] 点歌 [nonebot_plugin_songpicker2](https://github.com/maxesisn/nonebot_plugin_songpicker2)插件(删除了选歌和评论)
|
||||||
|
- [x] epic 免费游戏
|
||||||
|
- [x] p 站排行榜
|
||||||
|
- [x] p 站搜图
|
||||||
|
- [x] 翻译(日英韩)
|
||||||
|
- [x] pix 图库(一个自己的图库,含有增删查改,黑名单等命令)
|
||||||
|
|
||||||
- [x] 查看当前群欢迎消息
|
- [x] 查看当前群欢迎消息
|
||||||
- [x] 个人信息查看(群组内权限,聊天频率等)
|
- [x] 查看该群自己的权限
|
||||||
- [x] 消息撤回
|
- [x] 我的信息(只是为了看看什么时候入群)
|
||||||
|
- [x] 更新信息(如果继续更新的话)
|
||||||
|
- [x] go-cqhttp 最新版下载和上传(不需要请删除)
|
||||||
|
- [x] 撤回
|
||||||
|
- [x] 滴滴滴-(用户对超级用户发送消息)
|
||||||
|
- [x] 金币红包/金币排行
|
||||||
|
- [x] 俄罗斯轮盘/胜场排行/败场排行/欧洲人排行/慈善家排行
|
||||||
|
- [x] 网易云热评
|
||||||
|
- [x] 念首古诗
|
||||||
|
- [x] 获取 b 站视频封面
|
||||||
|
- [x] 通过 PID 获取图片
|
||||||
- [x] 功能统计可视化
|
- [x] 功能统计可视化
|
||||||
|
- [x] 词云
|
||||||
- [x] 关于
|
- [x] 关于
|
||||||
- [x] 三种样式的帮助菜单
|
|
||||||
|
|
||||||
### 管理员功能
|
### 已实现的管理员功能
|
||||||
|
|
||||||
- [x] 管理员帮助
|
|
||||||
- [x] 更新群组成员信息
|
- [x] 更新群组成员信息
|
||||||
|
|
||||||
- [x] 95%的群功能开关
|
- [x] 95%的群功能开关
|
||||||
- [x] 查看群内被动技能状态
|
- [x] 查看群内被动技能状态
|
||||||
- [x] 自定义群欢迎消息(是真寻的不是管家的!)
|
- [x] 自定义群欢迎消息(是真寻的不是管家的!)
|
||||||
- [x] ban/unban(支持设置 ban 时长)= 群组及用户的黑名单
|
- [x] .ban/.unban(支持设置 ban 时长)= 黑白名单
|
||||||
- [x] 休息吧/醒来(群组内真寻状态)
|
- [x] 刷屏禁言相关:刷屏检测设置/设置禁言时长/设置检测次数
|
||||||
|
- [x] 上传图片/连续上传图片 (上传图片至指定图库)
|
||||||
|
- [x] 移动图片 (同上)
|
||||||
|
- [x] 删除图片 (同上)
|
||||||
|
- [x] 群内 B 站订阅
|
||||||
|
- [x] 词条设置
|
||||||
|
- [x] 休息吧/醒来
|
||||||
|
|
||||||
### 超级用户功能
|
### 已实现的超级用户功能
|
||||||
|
|
||||||
- [x] 超级用户帮助
|
|
||||||
- [x] 添加/删除权限(是真寻的管理员权限,不是群管理员)
|
- [x] 添加/删除权限(是真寻的管理员权限,不是群管理员)
|
||||||
- [x] 群组管理,退群指令等
|
|
||||||
|
- [x] 开启/关闭指定群的广播通知
|
||||||
- [x] 广播
|
- [x] 广播
|
||||||
- [x] 自检(检查系统状态)
|
- [x] 自检(检查系统状态)
|
||||||
- [x] 所有群组/所有好友
|
- [x] 所有群组/所有好友
|
||||||
- [x] 退出指定群
|
- [x] 退出指定群
|
||||||
- [x] 更新好友信息/更新群信息
|
- [x] 更新好友信息/更新群信息
|
||||||
|
- [x] /t(对用户进行回复或发送消息)
|
||||||
|
- [x] 上传/删除/修改商品(需要编写对应的商品功能)
|
||||||
|
- [x] 节日红包发送
|
||||||
- [x] 修改群权限
|
- [x] 修改群权限
|
||||||
- [x] 检查更新
|
- [x] ban
|
||||||
|
- [x] 更新色图
|
||||||
|
- [x] 更新价格/更加图片(csgo 开箱)
|
||||||
|
- [x] 重载原神/方舟/赛马娘/坎公骑冠剑卡池
|
||||||
|
- [x] 更新原神今日素材/更新原神资源信息
|
||||||
|
- [x] PIX 相关操作
|
||||||
|
- [x] 检查更新真寻
|
||||||
- [x] 重启
|
- [x] 重启
|
||||||
- [x] 添加/删除/查看群白名单
|
- [x] 添加/删除/查看群白名单
|
||||||
- [x] 功能开关(更多设置)
|
- [x] 功能开关(更多设置)
|
||||||
- [x] 功能状态
|
- [x] 功能状态
|
||||||
- [x] 执行 SQL
|
- [x] b 了
|
||||||
|
- [x] 执行 sql
|
||||||
- [x] 重载配置
|
- [x] 重载配置
|
||||||
- [x] 清理临时数据
|
- [x] 清理临时数据
|
||||||
- [x] 增删群认证
|
- [x] 增删群认证
|
||||||
- [x] 同意/拒绝好友/群聊请求
|
- [x] 同意/拒绝好友/群聊请求
|
||||||
- [x] 添加/移除/更新插件/插件商店(plugins 库以及扩展库)
|
- [x] 配置重载
|
||||||
- [x] WebUI API(对真寻前端的支持)
|
|
||||||
|
|
||||||
#### 超级用户的被动技能
|
#### 超级用户的被动技能
|
||||||
|
|
||||||
- [x] 邀请入群提醒(别人邀请真寻入群,可配置自动同意)
|
- [x] 邀请入群提醒(别人邀请真寻入群)
|
||||||
|
|
||||||
- [x] 添加好友提醒(别人添加真寻好友,可配置自动同意)
|
- [x] 添加好友提醒(别人添加真寻好友)
|
||||||
|
|
||||||
### 被动技能
|
### 已实现的被动技能
|
||||||
|
|
||||||
|
- [x] 进群欢迎消息
|
||||||
|
|
||||||
- [x] 群早晚安
|
- [x] 群早晚安
|
||||||
|
- [x] 每日开箱重置提醒
|
||||||
|
- [x] b 站转发解析(解析 b 站分享信息,支持 bv,bilibili 链接,b 站手机端转发卡片,cv,b23.tv),且 5 分钟内不解析相同 url
|
||||||
|
- [x] 丢人爬(爬表情包)
|
||||||
|
- [x] epic 通知(每日发送 epic 免费游戏链接)
|
||||||
|
- [x] 原神黄历提醒
|
||||||
|
- [x] 复读
|
||||||
|
|
||||||
### 看不见的技能
|
### 已实现的看不见的技能
|
||||||
|
|
||||||
|
- [x] 刷屏禁言检测
|
||||||
|
|
||||||
- [x] 功能调用统计
|
- [x] 功能调用统计
|
||||||
- [x] 聊天记录统计
|
|
||||||
- [x] 检测恶意触发命令(将被最高权限 ban 掉 30 分钟,只有最高权限(9 级)可以进行 unban)
|
- [x] 检测恶意触发命令(将被最高权限 ban 掉 30 分钟,只有最高权限(9 级)可以进行 unban)
|
||||||
- [x] 自动同意好友/群组请求,加群请求将会提醒管理员,退群提示,加群欢迎等等
|
- [x] 自动同意好友请求,加群请求将会提醒管理员,退群提示,加群欢迎等等
|
||||||
- [x] 群聊时间检测(当群聊最后一人发言时间大于当前 48 小时后将关闭该群所有通知(即被动技能))
|
- [x] 群聊时间检测(当群聊最后一人发言时间大于当前 36 小时后将关闭该群所有通知(即被动技能))
|
||||||
- [x] 群管理员监控,自动为新晋管理员增加权限,为失去群管理员的用户删除权限
|
- [x] 群管理员监控,自动为新晋管理员增加权限,为失去群管理员的用户删除权限
|
||||||
- [x] 群权限系统
|
- [x] 群权限系统
|
||||||
- [x] 定时更新权限
|
- [x] 定时更新权限
|
||||||
- [x] 自动配置重载
|
- [x] 自动配置重载
|
||||||
- [x] 强制入群保护
|
|
||||||
- [x] 自定备份(可配置)
|
|
||||||
- [x] 笨蛋检测(当使用功能名称当指令时真寻会跳出来狠狠嘲笑并帮助)
|
|
||||||
|
|
||||||
### 更多插件...
|
</details> -->
|
||||||
|
|
||||||
- [更多插件](https://github.com/zhenxun-org/zhenxun_bot_plugins)
|
## [爱发电](https://afdian.net/@HibiKier)
|
||||||
|
|
||||||
- [第三方插件索引库](https://github.com/zhenxun-org/zhenxun_bot_plugins_index)
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
## [爱发电](https://afdian.com/a/HibiKier)
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>爱发电 以及 感谢投喂 </summary>
|
<summary>爱发电 以及 感谢投喂 </summary>
|
||||||
<img width="365px" height="450px" src="https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/afd.jpg">
|
<img width="365px" height="450px" src="https://user-images.githubusercontent.com/45528451/175059389-cfeb8174-fa07-4939-80ab-a039087a50f6.png">
|
||||||
|
|
||||||
### 感谢名单
|
### 感谢名单
|
||||||
|
|
||||||
@@ -307,7 +369,6 @@ python bot.py
|
|||||||
[哇](https://afdian.net/u/9b266244f23911eca19052540025c377)
|
[哇](https://afdian.net/u/9b266244f23911eca19052540025c377)
|
||||||
[yajiwa](https://github.com/yajiwa)
|
[yajiwa](https://github.com/yajiwa)
|
||||||
[爆金币](https://afdian.net/u/0d78879ef23711ecb22452540025c377)
|
[爆金币](https://afdian.net/u/0d78879ef23711ecb22452540025c377)
|
||||||
...
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__: v0.2.4-fix2
|
__version__: v0.2.3
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ 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)
|
||||||
@@ -14,7 +15,6 @@ 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)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 315 KiB |
|
Before Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 279 KiB |
|
Before Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 193 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 171 KiB |
|
After Width: | Height: | Size: 60 KiB |
@@ -47,10 +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"
|
||||||
|
arclet-alconna = "1.8.23"
|
||||||
aiocache = "^0.12.2"
|
aiocache = "^0.12.2"
|
||||||
py-cpuinfo = "^9.0.0"
|
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"
|
||||||
|
|||||||
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 282 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |