We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
async
1 parent 4529334 commit 97a2c1cCopy full SHA for 97a2c1c
YetAnotherPicSearch/__init__.py
@@ -41,7 +41,7 @@
41
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
42
43
44
-async def check_first_connect(_: LifecycleMetaEvent) -> bool:
+def check_first_connect(_: LifecycleMetaEvent) -> bool:
45
return True
46
47
@@ -62,7 +62,7 @@ def has_images(event: MessageEvent) -> bool:
62
return bool([i for i in message if i.type == "image"])
63
64
65
-async def to_me_with_images(bot: Bot, event: MessageEvent) -> bool:
+def to_me_with_images(bot: Bot, event: MessageEvent) -> bool:
66
with_command_keyword = "搜图" in event.message.extract_plain_text()
67
has_image = has_images(event)
68
if isinstance(event, PrivateMessageEvent):
0 commit comments