Skip to content

Commit 6e455d4

Browse files
committed
<jx3>[feat]subscribe
1 parent d12011f commit 6e455d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/jx3/weibo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
from nonebot.log import logger
55

6+
from src.tools.basic.group import send_subscribe
7+
68
import asyncio
79

810
def trim_to_last_period(s: str) -> str:
@@ -17,7 +19,7 @@ def check_time(timestamp: str) -> bool:
1719
async def execute_on_new_post(post):
1820
data = trim_to_last_period(post.get("text_raw"))
1921
logger.info({"data": data})
20-
return {"text": data}
22+
await send_subscribe("咸鱼", data)
2123

2224
async def poll_weibo_api(uid, interval=60):
2325
async with async_playwright() as p:

0 commit comments

Comments
 (0)