From d150495dcc963c2bfe5f6033dfe40af6e5b3a362 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Thu, 13 Oct 2022 15:38:00 +0800 Subject: =?UTF-8?q?=F0=9F=8E=A8=20=E4=BC=98=E5=8C=96=E9=95=BF=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=9E=84=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/anti_effort/__init__.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'ATRI/plugins/anti_effort') diff --git a/ATRI/plugins/anti_effort/__init__.py b/ATRI/plugins/anti_effort/__init__.py index 2417c37..52fea9c 100644 --- a/ATRI/plugins/anti_effort/__init__.py +++ b/ATRI/plugins/anti_effort/__init__.py @@ -14,6 +14,7 @@ from nonebot.adapters.onebot.v11 import ( ) from nonebot.adapters.onebot.v11.helpers import Cooldown +from ATRI.message import MessageBuilder from ATRI.utils.apscheduler import scheduler from .data_source import AntiEffort, PLUGIN_DIR @@ -21,14 +22,14 @@ from .data_source import AntiEffort, PLUGIN_DIR _lmt_notice = choice(["慢...慢一..点❤", "冷静1下", "歇会歇会~~", "呜呜...别急"]) -_GET_URL_MSG = """请键入wakatime share embed URL: -获取方法: - - 前往 wakatime.com/share/embed - - Format 选择 JSON - - Chart Type 选择 Coding Activity - - Date Range 选择 Last 7 Days - - 所需url就在下一栏 HTML 中的 url -""".strip() +_GET_URL_MSG = ( + MessageBuilder("请键入wakatime share embed URL:") + .text("- 前往 wakatime.com/share/embed") + .text("- Format 选择 JSON") + .text("- Chart Type 选择 Coding Activity") + .text("- Date Range 选择 Last 7 Days") + .text("- 所需url为下一栏 HTML 中的 url") +) add_user = AntiEffort().on_command("!我也要卷", "加入卷王统计榜") -- cgit v1.2.3