Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions apps/LittleTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class xgn extends plugin {
priority: 1045,
rule: [{
/** 命令正则匹配 */
reg: /^\p{Emoji_Presentation}{2}$/gum, //匹配消息正则,命令正则
reg: /^(?:\p{Emoji}(?:\uFE0F)?){2}$/u, //匹配消息正则,命令正则
/** 执行方法 */
fnc: 'bqhc'
}, {
Expand Down Expand Up @@ -235,7 +235,7 @@ export class xgn extends plugin {

//https://xiaobapi.top/api/xb/api/emoji_synthesis.php?emoji=
console.log(121231231321)
let url = 'http://datukuai.top:1450/djs/API/emojimix/api.php?emoji1=' + bq[1] + '&emoji2=' + bq[3]
let url = 'https://api.emoji.moev.cc?emoji1=' + bq[1] + '&emoji2=' + bq[3]
console.log(url)
let res = await fetch(url)
res = await res.json()
Expand Down
42 changes: 21 additions & 21 deletions apps/bilibilitv.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,34 +161,34 @@ export class xgn extends plugin {
let zf = res4.data.stat.share
console.log(img,bt,zz,jj)
let msg = segment.image(img)
let msg2 = `标题:${bt}\n简介:${jj}\n作者:${zz}\n\n点赞:${dz} 收藏:${sc} \n投币:${tb} 转发:${zf}\n正在解析b站视频,请稍等`
let msg2 = `标题:${bt}\n简介:${jj}\n作者:${zz}\n\n点赞:${dz} 收藏:${sc} \n投币:${tb} 转发:${zf}`

e.reply(msg)
e.reply(msg2)




let avid = res4.data.aid
let cid = res4.data.cid

url3 = `https://api.bilibili.com/x/player/playurl?avid=${avid}&cid=${cid}&qn=16&type=mp4&platform=html5`
response3 = await fetch(url3);
res4 = await response3.json();
url3 = res4.data.durl[0].url



let adsj1 = await fetch(url3, {
headers: {

'referer': 'https://www.bilibili.com/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
}
})

adsj1 = Buffer.from(await adsj1.arrayBuffer())
e.reply(segment.video(adsj1))
// let avid = res4.data.aid
// let cid = res4.data.cid
//
// url3 = `https://api.bilibili.com/x/player/playurl?avid=${avid}&cid=${cid}&qn=16&type=mp4&platform=html5`
// response3 = await fetch(url3);
// res4 = await response3.json();
// url3 = res4.data.durl[0].url
//
//
//
// let adsj1 = await fetch(url3, {
// headers: {
//
// 'referer': 'https://www.bilibili.com/',
// 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
// }
// })
//
// adsj1 = Buffer.from(await adsj1.arrayBuffer())
// e.reply(segment.video(adsj1))
}
}
function sleep(ms) {
Expand Down
2 changes: 1 addition & 1 deletion apps/shareMusic.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async bofang(e) {
} else if (e.msg.includes("酷狗")) {
isKugou = 1
} else {
isWangYiyun = 1
isQQ = 1
}

if (!isQQ && !isKugou && !isWangYiyun) isWangYiyun = true;
Expand Down