Compare commits
2 Commits
66dc9e65fb
...
aef43f0720
Author | SHA1 | Date | |
---|---|---|---|
aef43f0720 | |||
![]() |
306800bec1 |
10
main.py
10
main.py
@ -328,6 +328,16 @@ class MyPlugin(Star):
|
||||
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):
|
||||
yield event.plain_result("自动部署成功!!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user