From e893d39fb8423be5b6f9719ca3d930734eac7be5 Mon Sep 17 00:00:00 2001 From: Shanshui2024 Date: Wed, 28 Aug 2024 19:41:01 +0800 Subject: [PATCH] Update: Test Sync Func Signed-off-by: Shanshui2024 --- .github/workflows/upload.yml | 42 +++++++++++++++++++ .gitignore | 2 + docs/AxTBot/CommandList/minecraft.md | 4 +- docs/AxTBot/CommandList/steam.md | 15 +++---- docs/AxTBot/CommandList/touch.md | 17 ++++++++ docs/AxTBot/index.md | 1 + ...02\344\275\225\344\275\277\347\224\250.md" | 4 +- docs/index.md | 9 ++-- package-lock.json | 2 +- 9 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/upload.yml create mode 100644 .gitignore create mode 100644 docs/AxTBot/CommandList/touch.md diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml new file mode 100644 index 0000000..799fbb2 --- /dev/null +++ b/.github/workflows/upload.yml @@ -0,0 +1,42 @@ +name: Node CI + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npm run build + + + - name: Deploy to Baota Server + uses: easingthemes/ssh-deploy@v4.1.8 # 使用ssh-deploy Action + with: + ssh-private-key: ${{ secrets.SERVER_SSH_KEY }} # 服务器SSH私钥 + remote-user: ${{ secrets.SERVER_USER }} # 服务器用户名 + remote-host: ${{ secrets.SERVER_HOST }} # 服务器地址 + remote-port: ${{ secrets.SERVER_PORT }} # SSH端口,默认为22 + target-path: ${{ secrets.SERVER_TARGET }} # 服务器上的目标路径 + source: 'dist/' # 要上传的本地目录 + args: '-rltgoDzv' # rsync参数 + before-script: | + mkdir -P ${{ secrets.SERVER_TARGET }} + rm -rf ${{ secrets.SERVER_TARGET }}/* + +env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36e56ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/node_modules +/docs/.vitepress/cache \ No newline at end of file diff --git a/docs/AxTBot/CommandList/minecraft.md b/docs/AxTBot/CommandList/minecraft.md index 232f401..383e2dd 100644 --- a/docs/AxTBot/CommandList/minecraft.md +++ b/docs/AxTBot/CommandList/minecraft.md @@ -10,7 +10,9 @@ title: Minecraft信息查询 |功能|指令| | ------------ | ------------ | | 获取玩家UUID等信息 | /mc [ID] | -| 获取玩家皮肤文件 | #mcskin [ID] | +| 获取玩家皮肤文件 | /mcskin [ID] | +| 获取玩家皮肤头像 | /mchead [ID] | +| 获取玩家皮肤躯干 | /mcbody [ID] | | 支持Java/BE查询 | /mcping [IP:端口] | | Java服务器详细查询 | /mcping [IP:端口] java | | Bedrock服务器详细查询 | /mcping [IP:端口] be | diff --git a/docs/AxTBot/CommandList/steam.md b/docs/AxTBot/CommandList/steam.md index 521f187..0e62afc 100644 --- a/docs/AxTBot/CommandList/steam.md +++ b/docs/AxTBot/CommandList/steam.md @@ -17,11 +17,12 @@ title: 查询Steam用户信息 ``` ====Steam账户信息==== -社区资料状态:公开 -用户名:NoNameGMM -真实姓名:NoNameGMM -Steam ID:76561199445846334 -账户创建日期:2022-12-19 07:54:29 -最后下线日期:1970-01-01 08:00:00 -地理位置:CN +| 社区资料状态:公开 +| 用户名:NoNameGMM +| 真实姓名:NoNameGMM +| Steam ID:76561199445846334 +| 账户创建日期:2022-12-19 07:54:29 +| 最后下线日期:1970-01-01 08:00:00 +| 地理位置:CN +===================== ``` \ No newline at end of file diff --git a/docs/AxTBot/CommandList/touch.md b/docs/AxTBot/CommandList/touch.md new file mode 100644 index 0000000..73ba7ea --- /dev/null +++ b/docs/AxTBot/CommandList/touch.md @@ -0,0 +1,17 @@ +--- +sidebar_position: 4 +title: 摸头 +--- +# 今日人品 + +用法:`@机器人 摸` + +示例: +``` +@机器人 摸1680839 +``` + +获取成功-返回示例: +``` +[表情包] +``` diff --git a/docs/AxTBot/index.md b/docs/AxTBot/index.md index 8296070..265bf6e 100644 --- a/docs/AxTBot/index.md +++ b/docs/AxTBot/index.md @@ -21,4 +21,5 @@ title: AxTBot |AxT社区机器人| [@机器人 /hotlist [类型] ](/AxTBot/CommandList/hotlist) | 获取热搜榜信息的信息 | |AxT社区机器人| [@机器人 /steam [昵称/ID] ](/AxTBot/CommandList/steam) | 获取Steam账号信息 | |AxT社区机器人| [@机器人 /ask [问题] ](/AxTBot/CommandList/ask) | 赛博答案之书 | +|AxT社区机器人| [@机器人 /摸 [QQ号] ](/AxTBot/CommandList/touch) | 生成摸头GIF | |AxT社区机器人| [@机器人 jrrp](/AxTBot/CommandList/jrrp) | 获取今日人品 | diff --git "a/docs/AxTBot/\345\246\202\344\275\225\344\275\277\347\224\250.md" "b/docs/AxTBot/\345\246\202\344\275\225\344\275\277\347\224\250.md" index 59fe33a..b390e78 100644 --- "a/docs/AxTBot/\345\246\202\344\275\225\344\275\277\347\224\250.md" +++ "b/docs/AxTBot/\345\246\202\344\275\225\344\275\277\347\224\250.md" @@ -16,7 +16,7 @@ sidebar_position: 2 找到Bot -> 由于特殊原因,`AxT社区Bot` 和 `AxT社区机器人` 功能合并,所以图片中展示的AxT社区Bot已经被移除 +> 由于部分原因,`AxT社区Bot` 和 `AxT社区机器人` 功能合并,所以图片中展示的AxT社区Bot已经被移除 ### 3. 添加到群聊 - 点击下方的 `添加到群聊` 按钮进行添加 @@ -40,7 +40,7 @@ sidebar_position: 2 ## 通过二维码添加 > 扫描以下需要添加的Bot名二维码,点击 `添加到群聊` -AxT社区Bot +AxT社区机器人 ::: tip Tips: diff --git a/docs/index.md b/docs/index.md index 864a03f..5f411c6 100644 --- a/docs/index.md +++ b/docs/index.md @@ -39,7 +39,7 @@ sidebar_position: 1 | ----------------- | ----------------------------------------------------------- | ----- | | AxT 官网 | [https://www.axtn.net/](https://www.axtn.net) | 98% | | AxT 论坛 | [https://forum.axtn.net/](https://forum.axtn.net/) | 55% | - | AxT 文档 | [https://docs.axtn.net/](https://docs.axtn.net/) | 65% | + | AxT 文档 | [https://docs.axtn.net/](https://docs.axtn.net/) | 67% | | AxT API | [https://api.axtn.net/](https://api.axtn.net/) | 60% | | AxT 用户面板 | [https://dash.axtn.net/](https://dash.axtn.net/) | 55% | | UApi | [https://uapis.cn](https://uapis.cn) | 75% | @@ -72,11 +72,12 @@ sidebar_position: 1 | 项目名 | 描述 | 负责人 | 是否收费 | 完成度 | | --------------- | ---------------------------------- | ---------- | ----------- | ------ | -| **EasyConnect** | / | @XiaoXian | 部分收费 | 0% | +| **EasyWAN** | / | @XiaoXian | 部分收费 | 0% | | **MCMirror** | Minecraft镜像站 | @XiaoXian @melisaaaa | 公益 | 80% | -| **ATMirror** | 轻量化不限速镜像下载站 | @XiaoXian | 公益 | 10% | ## 停止维护的项目 -**暂无** +| 项目名 | 描述 | 负责人 | 是否收费 | +| --------------- | ---------------------------------- | ---------- | ----------- | +| **ATMirror** | 轻量化不限速镜像下载站 | @XiaoXian | 公益 | \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 23d62ee..32a8d67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "VitePress", + "name": "AxT-Docs", "lockfileVersion": 3, "requires": true, "packages": {