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.
1 parent d12011f commit 6e455d4Copy full SHA for 6e455d4
src/plugins/jx3/weibo.py
@@ -3,6 +3,8 @@
3
4
from nonebot.log import logger
5
6
+from src.tools.basic.group import send_subscribe
7
+
8
import asyncio
9
10
def trim_to_last_period(s: str) -> str:
@@ -17,7 +19,7 @@ def check_time(timestamp: str) -> bool:
17
19
async def execute_on_new_post(post):
18
20
data = trim_to_last_period(post.get("text_raw"))
21
logger.info({"data": data})
- return {"text": data}
22
+ await send_subscribe("咸鱼", data)
23
24
async def poll_weibo_api(uid, interval=60):
25
async with async_playwright() as p:
0 commit comments