Merge pull request '添加来句骚话功能' (#27) from QAQ into master

Reviewed-on: saipo/astrbot_plugin_dajiao#27
This commit is contained in:
QAQ 2025-05-22 20:07:24 +08:00
commit aef43f0720

10
main.py
View File

@ -327,6 +327,16 @@ class MyPlugin(Star):
yield "获取表情包失败"
else:
yield "API请求失败"
@filter.command("来句骚话")
async def lovelive(self, event: AstrMessageEvent):
async with aiohttp.ClientSession() as session:
async with session.get('https://api.lovelive.tools/api/SweetNothings') as resp:
chain = [
Comp.At(qq=event.get_sender_id()), # At 消息发送者
Comp.Plain(resp)
]
@filter.command("部署")
async def bushutest(self, event: AstrMessageEvent):