From cdfb822f42d7f705699240a68eda3e86c665e020 Mon Sep 17 00:00:00 2001 From: passthem Date: Sun, 7 Dec 2025 23:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E6=89=80=E6=9C=89=E4=BB=A3=E5=8A=9E?= =?UTF-8?q?=E9=83=BD=E6=8D=A2=E6=88=90=E5=BE=85=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/docs/user/ntfy.txt | 4 ++-- konabot/plugins/simple_notify/__init__.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/konabot/docs/user/ntfy.txt b/konabot/docs/user/ntfy.txt index cea0bbf..ad32239 100644 --- a/konabot/docs/user/ntfy.txt +++ b/konabot/docs/user/ntfy.txt @@ -1,10 +1,10 @@ ## 指令介绍 -**`ntfy`** - 配置使用 [ntfy](https://ntfy.sh/) 来更好地为你通知此方 BOT 的代办事项。 +**`ntfy`** - 配置使用 [ntfy](https://ntfy.sh/) 来更好地为你通知此方 BOT 的待办事项。 ## 指令示例 - **`ntfy 创建`** - 创建一个随机的 ntfy 订阅主题来提醒代办。此方 Bot 将会给你使用指引。你可以前往 [https://ntfy.sh/](https://ntfy.sh/) 官网下载 ntfy APP,或者使用网页版 ntfy。 + 创建一个随机的 ntfy 订阅主题来提醒待办。此方 Bot 将会给你使用指引。你可以前往 [https://ntfy.sh/](https://ntfy.sh/) 官网下载 ntfy APP,或者使用网页版 ntfy。 - **`ntfy 创建 kagami-notice`** 创建一个名称包含 `kagami-notice` 的 ntfy 订阅主题。 diff --git a/konabot/plugins/simple_notify/__init__.py b/konabot/plugins/simple_notify/__init__.py index ddcd7e8..e7ae8ed 100644 --- a/konabot/plugins/simple_notify/__init__.py +++ b/konabot/plugins/simple_notify/__init__.py @@ -95,7 +95,7 @@ async def _(msg: UniMsg, mEvt: Event, target: DepLongTaskTarget): await target.send_message( UniMessage().text(f"了解啦!将会在 {target_time.strftime(FMT_STRING)} 提醒你哦~") ) - logger.info(f"创建了一条于 {target_time} 的代办提醒") + logger.info(f"创建了一条于 {target_time} 的待办提醒") driver = nonebot.get_driver() @@ -105,9 +105,9 @@ driver = nonebot.get_driver() async def _(task: LongTask): message = task.data["message"] await task.target.send_message( - UniMessage().text(f"代办提醒:{message}") + UniMessage().text(f"待办提醒:{message}") ) - notice_bytes = await NoticeUI.render_notice("代办提醒", message) + notice_bytes = await NoticeUI.render_notice("待办提醒", message) await task.target.send_message( UniMessage().image(raw=notice_bytes), at=False @@ -123,7 +123,7 @@ USER_CHECKOUT_TASK_CACHE: dict[str, dict[str, str]] = {} cmd_check_notify_list = on_alconna(Alconna( - "re:(?:我有哪些|查询)(?:提醒|代办)", + "re:(?:我有哪些|查询)(?:提醒|待办)", Args["page", int, 1] )) @@ -141,7 +141,7 @@ async def _(page: int, target: DepLongTaskTarget): await target.send_message(UniMessage().text(f"最多也就 {pages} 页啦!")) tasks = tasks[(page - 1) * PAGE_SIZE: page * PAGE_SIZE] - message = "你可以输入「删除提醒 序号」来删除一个提醒\n====== 代办清单 ======\n\n" + message = "你可以输入「删除提醒 序号」来删除一个提醒\n====== 待办清单 ======\n\n" to_cache = {} if len(tasks) == 0: @@ -158,7 +158,7 @@ async def _(page: int, target: DepLongTaskTarget): cmd_remove_task = on_alconna(Alconna( - "re:删除(?:提醒|代办)", + "re:删除(?:提醒|待办)", Args["checker", str], )) @@ -235,7 +235,7 @@ async def _(target: DepLongTaskTarget, notify_id: str = ""): )) await send_notify_to_ntfy_instance( - "如果你看到这条消息,说明你已经成功订阅主题!此方 BOT 将会在这里提醒你你的代办!", + "如果你看到这条消息,说明你已经成功订阅主题!此方 BOT 将会在这里提醒你你的待办!", channel_name, )