Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion startbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ async def matchSinger(self, sentence, e):
nlist.clear()
num = 0
e.set()


async def matchName(self, sentence, e):
if '叫' not in sentence or len(sentence) > 7:
Expand Down Expand Up @@ -507,6 +507,13 @@ async def worker(_t, robot: Robot, isPrivate=False):
await robot.SearchNetease(link.strip(), 1)
return

if 'bhot' in _t:
await robot.sendMessage('b站热搜来咯~(。^▽^)')
r = requests.get('http://10.244.110.84:6702/bhot').json()
if 'error' in r:
await robot.sendMessage(r['error'])
await robot.sendMessage(r['msg'])

if "测试发送" in _t:
r = requests.get("http://music.163.com/song/media/outer/url?id=27646205.mp3",allow_redirects=False)
await robot.sendVoice(r.headers['Location'])
Expand Down