summaryrefslogtreecommitdiff
path: root/ATRI
diff options
context:
space:
mode:
authorLint Action <[email protected]>2022-02-04 16:50:25 +0000
committerLint Action <[email protected]>2022-02-04 16:50:25 +0000
commit79c8e51579c7ee2c5a64220d7cc03f2312dbf4f3 (patch)
tree849e23afb99c913f8eac69def3e41caf96025b55 /ATRI
parentc38bab21b3c85e82250e3b82ebde31e2aca2db92 (diff)
downloadATRI-79c8e51579c7ee2c5a64220d7cc03f2312dbf4f3.tar.gz
ATRI-79c8e51579c7ee2c5a64220d7cc03f2312dbf4f3.tar.bz2
ATRI-79c8e51579c7ee2c5a64220d7cc03f2312dbf4f3.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI')
-rw-r--r--ATRI/config.py1
-rw-r--r--ATRI/plugins/anime_search.py4
-rw-r--r--ATRI/plugins/chat/__init__.py4
-rw-r--r--ATRI/plugins/code_runner/__init__.py2
-rw-r--r--ATRI/plugins/funny/__init__.py4
-rw-r--r--ATRI/plugins/repo.py4
-rw-r--r--ATRI/plugins/setu/__init__.py5
-rw-r--r--ATRI/plugins/setu/data_source.py2
-rw-r--r--ATRI/plugins/util/__init__.py4
9 files changed, 8 insertions, 22 deletions
diff --git a/ATRI/config.py b/ATRI/config.py
index f9b8d95..96f2bd2 100644
--- a/ATRI/config.py
+++ b/ATRI/config.py
@@ -61,7 +61,6 @@ RUNTIME_CONFIG = {
"command_start": BotSelfConfig.command_start,
"command_sep": BotSelfConfig.command_sep,
"session_expire_timeout": BotSelfConfig.session_expire_timeout,
-
"gocq_accounts": InlineGoCQHTTP.accounts,
"gocq_download_domain": InlineGoCQHTTP.download_domain,
"gocq_version": InlineGoCQHTTP.download_version,
diff --git a/ATRI/plugins/anime_search.py b/ATRI/plugins/anime_search.py
index 2909632..3bfeedb 100644
--- a/ATRI/plugins/anime_search.py
+++ b/ATRI/plugins/anime_search.py
@@ -80,9 +80,7 @@ anime_search = Anime().on_command("以图搜番", "发送一张图以搜索可�
@anime_search.got("anime_pic", "图呢?", [Cooldown(5, prompt=_anime_flmt_notice)])
-async def _deal_sear(
- bot: Bot, event: MessageEvent
-):
+async def _deal_sear(bot: Bot, event: MessageEvent):
user_id = event.get_user_id()
img = extract_image_urls(event.message)
if not img:
diff --git a/ATRI/plugins/chat/__init__.py b/ATRI/plugins/chat/__init__.py
index 2b03792..4219d56 100644
--- a/ATRI/plugins/chat/__init__.py
+++ b/ATRI/plugins/chat/__init__.py
@@ -55,9 +55,7 @@ say = Chat().on_command("说", "别人让我说啥就说啥(", priority=1)
@say.handle([Cooldown(3, prompt=_chat_flmt_notice)])
-async def _ready_say(
- matcher: Matcher, args: Message = CommandArg()
-):
+async def _ready_say(matcher: Matcher, args: Message = CommandArg()):
msg = args.extract_plain_text()
if msg:
matcher.set_arg("say", args)
diff --git a/ATRI/plugins/code_runner/__init__.py b/ATRI/plugins/code_runner/__init__.py
index 01b09c6..adf6407 100644
--- a/ATRI/plugins/code_runner/__init__.py
+++ b/ATRI/plugins/code_runner/__init__.py
@@ -20,7 +20,7 @@ async def _code_runner(
):
user_id = event.get_user_id()
msg = args.extract_plain_text()
-
+
if msg:
matcher.set_arg("opt", args)
else:
diff --git a/ATRI/plugins/funny/__init__.py b/ATRI/plugins/funny/__init__.py
index 5b158b2..7a0241c 100644
--- a/ATRI/plugins/funny/__init__.py
+++ b/ATRI/plugins/funny/__init__.py
@@ -38,9 +38,7 @@ fake_msg = Funny().on_command(
@fake_msg.handle([Cooldown(3600, prompt=_fake_flmt_notice)])
-async def _ready_fake(
- matcher: Matcher, args: Message = CommandArg()
-):
+async def _ready_fake(matcher: Matcher, args: Message = CommandArg()):
msg = args.extract_plain_text()
if msg:
matcher.set_arg("content", args)
diff --git a/ATRI/plugins/repo.py b/ATRI/plugins/repo.py
index 57fa327..9c5818a 100644
--- a/ATRI/plugins/repo.py
+++ b/ATRI/plugins/repo.py
@@ -27,9 +27,7 @@ reporter = Repo().on_command("来杯红茶", "向维护者发送消息", aliases
@reporter.handle([Cooldown(120, prompt=_repo_flmt_notice)])
-async def _ready_repo(
- matcher: Matcher, args: Message = CommandArg()
-):
+async def _ready_repo(matcher: Matcher, args: Message = CommandArg()):
msg = args.extract_plain_text()
if msg:
matcher.set_arg("repo", args)
diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py
index 70d0dc2..2f44222 100644
--- a/ATRI/plugins/setu/__init__.py
+++ b/ATRI/plugins/setu/__init__.py
@@ -16,9 +16,7 @@ from .data_source import Setu
loop = asyncio.get_event_loop()
-random_setu = Setu().on_command(
- "来张涩图", "来张随机涩图,冷却2分钟", aliases={"涩图来", "来点涩图", "来份涩图"}
-)
+random_setu = Setu().on_command("来张涩图", "来张随机涩图,冷却2分钟", aliases={"涩图来", "来点涩图", "来份涩图"})
@random_setu.handle([Cooldown(120)])
@@ -34,7 +32,6 @@ async def _random_setu(
except Exception:
await random_setu.finish("hso(发不出")
-
msg = args.extract_plain_text()
if msg:
matcher.set_arg("r_rush_after_think", args)
diff --git a/ATRI/plugins/setu/data_source.py b/ATRI/plugins/setu/data_source.py
index 0b8ae50..b7c5162 100644
--- a/ATRI/plugins/setu/data_source.py
+++ b/ATRI/plugins/setu/data_source.py
@@ -18,7 +18,7 @@ DEFAULT_SETU = (
class Setu(Service):
def __init__(self):
Service.__init__(self, "涩图", "hso!", rule=is_in_service("涩图"))
-
+
@staticmethod
def _use_proxy(url: str) -> str:
if ST.reverse_proxy:
diff --git a/ATRI/plugins/util/__init__.py b/ATRI/plugins/util/__init__.py
index e63870b..19fdcaf 100644
--- a/ATRI/plugins/util/__init__.py
+++ b/ATRI/plugins/util/__init__.py
@@ -74,9 +74,7 @@ _sepi_flmt_notice = choice(["涩批爬", "✌🥵✌"])
@sepi.handle([Cooldown(3, prompt=_sepi_flmt_notice)])
-async def _ready_sepi(
- matcher: Matcher, args: Message = CommandArg()
-):
+async def _ready_sepi(matcher: Matcher, args: Message = CommandArg()):
msg = args.extract_plain_text()
if msg:
matcher.set_arg("sepi_text", args)