Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-04-28 19:56:23 +08:00 committed by GitHub
parent fbc5a14a5d
commit b33757511f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ from core.builtins import Bot
from core.builtins import Image
from core.component import module
webrender = Config('web_render')
arc = module('arcaea', developers=['OasisAkari'], desc='{arcaea.help.desc}',
alias={'b30': 'arcaea b30', 'a': 'arcaea', 'arc': 'arcaea'})
assets_path = os.path.abspath('./assets/')
@ -18,7 +19,7 @@ async def _(msg: Bot.MessageSession):
@arc.command('download {{arcaea.download.help}}')
async def _(msg: Bot.MessageSession):
if not webrender:
await msg.finish([message.no_webrender")])
await msg.finish([msg.locale.t("arcaea.message.no_webrender"))])
resp = await get_url(webrender + 'source?url=https://webapi.lowiro.com/webapi/serve/static/bin/arcaea/apk/', 200,
fmt='json')
if resp: