NumberSir/nonebot_plugin_arktools

方舟今日资源和最新活动无法获取

Closed this issue · 1 comments

如题 操作系统 Centos7.6;Python 3.7.12 ;NoneBot2 v2.0.0-beta.4;
后台无报错
image

J(@PU3$U{Q6M3H{K{_1D1TB

bot.py内容如下:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import nonebot
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11Adapter

# Custom your logger
# 
# from nonebot.log import logger, default_format
# logger.add("error.log",
#            rotation="00:00",
#            diagnose=False,
#            level="ERROR",
#            format=default_format)

# You can pass some keyword args config to init function
nonebot.init()
app = nonebot.get_asgi()

driver = nonebot.get_driver()
driver.register_adapter(ONEBOT_V11Adapter)

#nonebot.load_builtin_plugins("echo")
#nonebot.load_plugin("nonebot-plugin-arktools")
nonebot.load_plugins("src/plugins/nonebot-plugin-petpet")
# Please DO NOT modify this file unless you know what you are doing!
# As an alternative, you should use command `nb` or modify `pyproject.toml` to load plugins
nonebot.load_from_toml("pyproject.toml")

# Modify some config / config depends on loaded configs
# 
# config = driver.config
# do something...


if __name__ == "__main__":
    nonebot.logger.warning("Always use `nb run` to start the bot instead of manually running!")
    nonebot.run(app="__mp_main__:app")

pyproject.toml内容如下:

name = "awabot"
version = "0.1.0"
description = "awabot"
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.7.3"
nonebot2 = "^2.0.0-beta.1"

[tool.poetry.dev-dependencies]
nb-cli = "^0.6.0"

[tool.nonebot]
plugins = ["nonebot_plugin_repeater", "nonebot_plugin_crazy_thursday", "nonebot_plugin_remake", "nonebot_plugin_what2eat", "nonebot_plugin_arktools"]
plugin_dirs = ["src/plugins"]

[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

.env.prod(已在env配置启用)内容如下:

daily_levels_path="data/arktools/daily"     # 每日资源关卡的截图文件在本地存储的路径
activities_img_path="data/arktools/act/img"   # 新活动的截图文件在本地存储的路径
activities_data_path="data/arktools/act"  # 新活动的数据文件在本地存储的路径

对应存储资源文件处有对应文件夹及文件名称生产,无内容。
能够ping通ak.hypergryph.com以及prts.wiki,用wget能下载到页面。

P5}%(GMZ$KH_}1@7SVW5O
第一张图有原因,playwright没装好,cmd运行 playwright install 指令等安装完成后重启bot就行