Skip to content

Commit

Permalink
[🚀]适配ocr url, bump version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
benx1n committed Dec 6, 2023
1 parent 0a86020 commit c1ef535
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions menu_config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"default": "font_path"}
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 = "hikari-bot"
version = "1.0.3"
version = "1.0.4"
description = "Nonebot2 HikariBot,支持战舰世界水表查询"
authors = ["benx1n <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/hikari_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
is_first_run = True
_nlmt = DailyNumberLimiter(_max)
_flmt = FreqLimiter(3)
__bot_version__ = '1.0.3'
__bot_version__ = '1.0.4'

bot_get_random_pic = on_fullmatch('wws 随机表情包', block=True, priority=5)
bot_update = on_fullmatch('wws 更新Hikari', priority=5, block=True, permission=SUPERUSER)
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/hikari_bot/game/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
dir_path = Path(__file__).parent.parent
game_path = Path(__file__).parent
ocr_data_path = game_path / 'ocr_data.json'
upload_url = 'https://api.wows.shinoaki.com/api/wows/cache/image/ocr'
download_url = 'https://api.wows.shinoaki.com/api/wows/cache/image/ocr'
upload_url = 'https://v3-api.wows.shinoaki.com:8443/api/wows/cache/image/ocr'
download_url = 'https://v3-api.wows.shinoaki.com:8443/api/wows/cache/image/ocr'

headers = {'Authorization': config.api_token}

Expand Down

0 comments on commit c1ef535

Please sign in to comment.