Update __init__.py
This commit is contained in:
parent
fbc5a14a5d
commit
b33757511f
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue