summaryrefslogtreecommitdiff
path: root/ATRI/plugins
diff options
context:
space:
mode:
authorLint Action <[email protected]>2022-10-13 09:02:20 +0000
committerLint Action <[email protected]>2022-10-13 09:02:20 +0000
commit83a9fb95251c173b2394b668aab1b63908af5f29 (patch)
tree7ec4cb5cc1f156091a3e27fb298e608d72c0fae8 /ATRI/plugins
parent7bef2293b2bc03984bbcd664be20867f4a268f00 (diff)
downloadATRI-83a9fb95251c173b2394b668aab1b63908af5f29.tar.gz
ATRI-83a9fb95251c173b2394b668aab1b63908af5f29.tar.bz2
ATRI-83a9fb95251c173b2394b668aab1b63908af5f29.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins')
-rw-r--r--ATRI/plugins/console/__init__.py2
-rw-r--r--ATRI/plugins/repo.py6
-rw-r--r--ATRI/plugins/twitter/data_source.py4
3 files changed, 3 insertions, 9 deletions
diff --git a/ATRI/plugins/console/__init__.py b/ATRI/plugins/console/__init__.py
index 522998d..ea109dc 100644
--- a/ATRI/plugins/console/__init__.py
+++ b/ATRI/plugins/console/__init__.py
@@ -41,7 +41,7 @@ async def _(event: PrivateMessageEvent, is_pub_n: str = ArgPlainText("is_pub_n")
.text(f"Token: {token}")
.text("该 token 有效时间为 15min")
)
-
+
await gen_console_key.finish(msg)
diff --git a/ATRI/plugins/repo.py b/ATRI/plugins/repo.py
index 561e20b..67e9436 100644
--- a/ATRI/plugins/repo.py
+++ b/ATRI/plugins/repo.py
@@ -13,11 +13,7 @@ from ATRI.message import MessageBuilder
_repo_flmt_notice = choice(["慢...慢一..点❤", "冷静1下", "歇会歇会~~"])
-_REPO_FORMAT = (
- MessageBuilder("来自用户{user}反馈:")
- .text("{msg}")
- .done()
-)
+_REPO_FORMAT = MessageBuilder("来自用户{user}反馈:").text("{msg}").done()
class Repo(Service):
diff --git a/ATRI/plugins/twitter/data_source.py b/ATRI/plugins/twitter/data_source.py
index 18a8fb9..8f3e793 100644
--- a/ATRI/plugins/twitter/data_source.py
+++ b/ATRI/plugins/twitter/data_source.py
@@ -17,9 +17,7 @@ from .api import API
_DYNAMIC_OUTPUT_FORMAT = (
- MessageBuilder("{t_nickname} 的推更新了!")
- .text("{t_dy_content}")
- .done()
+ MessageBuilder("{t_nickname} 的推更新了!").text("{t_dy_content}").done()
)