Skip to content

Commit

Permalink
[🚀]bump version 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
benx1n committed Sep 3, 2024
1 parent 6c74d4c commit 3333feb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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.6"
version = "1.0.7"
description = "Nonebot2 HikariBot,支持战舰世界水表查询"
authors = ["benx1n <[email protected]>"]
license = "MIT"
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/hikari_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
GroupMessageEvent,
Message,
MessageEvent,
NoticeEvent,
MessageSegment,
NoticeEvent,
PrivateMessageEvent,
)
from nonebot.log import logger
Expand All @@ -47,7 +47,7 @@
is_first_run = True
_nlmt = DailyNumberLimiter(_max)
_flmt = FreqLimiter(3)
__bot_version__ = '1.0.6'
__bot_version__ = '1.0.7'

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 Expand Up @@ -79,7 +79,8 @@ async def main(bot: Bot, ev: MessageEvent, matchmsg: Message = CommandArg()): #
try:
server_type = None
if isinstance(ev, PrivateMessageEvent) and (
driver.config.private or str(ev.user_id) in driver.config.superusers): # 私聊事件,superusers默认不受影响
driver.config.private or str(ev.user_id) in driver.config.superusers
): # 私聊事件,superusers默认不受影响
server_type = 'QQ'
elif isinstance(ev, GroupMessageEvent) and driver.config.group and ev.group_id not in driver.config.ban_group_list: # 群聊事件
server_type = 'QQ'
Expand Down Expand Up @@ -188,13 +189,12 @@ async def GROUP_FILE_listen(bot: Bot, ev: NoticeEvent):
return
if not str(ev.file.name).endswith('.wowsreplay'):
return
#
base64_file = await bot.get_image(file=ev.file.id)
# 调用接口转换
await get_rep(base64_file['base64'], bot, ev)
except Exception:
logger.error(traceback.format_exc())
await bot.send(ev, MessageSegment.text("请求minimap_renderer服务异常"))
await bot.send(ev, MessageSegment.text('请求minimap_renderer服务异常'))
return


Expand Down

0 comments on commit 3333feb

Please sign in to comment.