Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 11, 2025
1 parent bd7ec60 commit 8ed73c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions nonebot_plugin_fortnite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .pve import screenshot_vb_img
from .shop import screenshot_shop_img

alc_plugin: Plugin = nonebot.get_plugin("nonebot_plugin_alconna")
alc_plugin: Plugin = get_plugin("nonebot_plugin_alconna")

__plugin_meta__ = PluginMetadata(
name="堡垒之夜游戏插件",
Expand All @@ -31,7 +31,6 @@
)



@scheduler.scheduled_job(
"cron",
id = 'fortnite',
Expand All @@ -41,9 +40,9 @@
async def _():
try:
await screenshot_shop_img()
except Exception:
pass
except Exception as e:
logger.warning(f'商城更新失败: {e}')
try:
await screenshot_vb_img()
except Exception:
pass
logger.warning(f'vb图更新失败: {e}')
2 changes: 1 addition & 1 deletion nonebot_plugin_fortnite/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pydantic import BaseModel
from typing import Optional
from nonebot import get_plugin_config, require
from nonebot import get_plugin_config

from pathlib import Path
import nonebot_plugin_localstore as store
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-fortnite"
version = "0.1.2"
version = "0.1.3"
description = "堡垒之夜插件"
authors = ["fllesser <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 8ed73c6

Please sign in to comment.