mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Compare commits
1 Commits
b1e88c9ac1
...
a2a63befa2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2a63befa2 |
26
.github/workflows/sync-to-aliyun.yml
vendored
26
.github/workflows/sync-to-aliyun.yml
vendored
@ -1,26 +0,0 @@
|
|||||||
name: Force Sync to Aliyun
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["main"]
|
|
||||||
jobs:
|
|
||||||
sync:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
git config --global http.postBuffer 524288000
|
|
||||||
git config --global core.compression 0
|
|
||||||
|
|
||||||
- name: Add aliyun remote
|
|
||||||
run: |
|
|
||||||
git remote add aliyun https://${{secrets.ALIYUN_ACCOUNT}}:${{secrets.ALIYUN_PASSWORD}}@codeup.aliyun.com/67a361cf556e6cdab537117a/zhenxun-org/zhenxun_bot.git
|
|
||||||
git fetch aliyun main --force # 强制更新本地引用
|
|
||||||
|
|
||||||
- name: Force push
|
|
||||||
run: git push --progress --force aliyun HEAD:main
|
|
||||||
@ -1 +1 @@
|
|||||||
__version__: v0.2.4-da6d5b4
|
__version__: v0.2.4-61251ce
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import asyncio
|
|
||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
|
|
||||||
from nonebot.adapters import Bot
|
from nonebot.adapters import Bot
|
||||||
@ -133,7 +132,6 @@ class FgRequest(Model):
|
|||||||
bot.self_id
|
bot.self_id
|
||||||
)
|
)
|
||||||
if file_path:
|
if file_path:
|
||||||
await asyncio.sleep(2)
|
|
||||||
await PlatformUtils.send_message(
|
await PlatformUtils.send_message(
|
||||||
bot,
|
bot,
|
||||||
req.user_id,
|
req.user_id,
|
||||||
|
|||||||
@ -76,7 +76,6 @@ class BotProfileManager:
|
|||||||
_f = PROFILE_IMAGE_PATH / f
|
_f = PROFILE_IMAGE_PATH / f
|
||||||
if _f.is_file():
|
if _f.is_file():
|
||||||
_f.unlink()
|
_f.unlink()
|
||||||
cls._bot_data.clear()
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def _read_profile(cls, bot_id: str):
|
async def _read_profile(cls, bot_id: str):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user