Merge branch 'CMHopeSunshine:Bot' into Bot

This commit is contained in:
xuthus 2024-05-24 21:30:57 +08:00 committed by GitHub
commit ca8cc68856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ class ConfigModel(BaseModel):
# 早报60s
morning_news: str = Field('https://api.vvhan.com/api/60s', alias='早报60s')
github_proxy: str = Field('https://github.cherishmoon.fun/', alias='github资源地址')
github_proxy: str = Field('https://github.cherishmoon.top/', alias='github资源地址')
@property
def alias_dict(self):

View File

@ -93,13 +93,13 @@ async def check_resource():
len(list((RESOURCE_BASE_PATH / 'LittlePaimon').rglob('*'))) >= 50):
try:
await aiorequests.download(
url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/resources.zip',
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/resources.zip',
save_path=RESOURCE_BASE_PATH / '小派蒙基础资源.zip')
zipfile.ZipFile(RESOURCE_BASE_PATH / '小派蒙基础资源.zip').extractall(RESOURCE_BASE_PATH)
(RESOURCE_BASE_PATH / '小派蒙基础资源.zip').unlink()
await aiorequests.download(
url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/GenshinWikiMap/master/resources/genshin_resources.zip',
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/GenshinWikiMap/raw/master/resources/genshin_resources.zip',
save_path=RESOURCE_BASE_PATH / '原神图标资源.zip')
zipfile.ZipFile(RESOURCE_BASE_PATH / '原神图标资源.zip').extractall(RESOURCE_BASE_PATH / 'LittlePaimon')
(RESOURCE_BASE_PATH / '原神图标资源.zip').unlink()
@ -110,7 +110,7 @@ async def check_resource():
if not (RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail').is_dir():
try:
await aiorequests.download(
url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/star_rail.zip',
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/star_rail.zip',
save_path=RESOURCE_BASE_PATH / 'star_rail.zip')
zipfile.ZipFile(RESOURCE_BASE_PATH / 'star_rail.zip').extractall(RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail')
(RESOURCE_BASE_PATH / 'star_rail.zip').unlink()

View File

@ -378,8 +378,8 @@ other_form = Form(
'value': 'https://ghproxy.com/'
},
{
'label': 'github.cherishmoon.fun代理',
'value': 'https://github.cherishmoon.fun/'
'label': 'github.cherishmoon.top代理',
'value': 'https://github.cherishmoon.top/'
},
{
'label': 'github.91chi.fun代理',