diff options
author | Kyomotoi <[email protected]> | 2022-10-13 15:38:00 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-10-13 15:38:00 +0800 |
commit | d150495dcc963c2bfe5f6033dfe40af6e5b3a362 (patch) | |
tree | 01303075e546abf0b36ee0ad078f742182d222ed /ATRI/plugins/anti_effort | |
parent | b9f92e547c663a6d4a853b1c967e6f3cc2dca641 (diff) | |
download | ATRI-d150495dcc963c2bfe5f6033dfe40af6e5b3a362.tar.gz ATRI-d150495dcc963c2bfe5f6033dfe40af6e5b3a362.tar.bz2 ATRI-d150495dcc963c2bfe5f6033dfe40af6e5b3a362.zip |
🎨 优化长消息构造
Diffstat (limited to 'ATRI/plugins/anti_effort')
-rw-r--r-- | ATRI/plugins/anti_effort/__init__.py | 17 |
1 files changed, 9 insertions, 8 deletions
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("!我也要卷", "加入卷王统计榜") |