MCPcopy Index your code
hub / github.com/NobyDa/Script / BarkNotify

Function BarkNotify

iQIYI-DailyBonus/iQIYI.js:386–386  ·  view source on GitHub ↗
(c, k, t, b, p)

Source from the content-addressed store, hash-verified

384}
385
386async function BarkNotify(c, k, t, b, p) { for (let i = 0; i < 3; i++) { console.log(`🔷Bark notify >> Start push (${i + 1})`); const s = await new Promise((n) => { c.post({ url: p || 'https://api.day.app/push', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ title: t, body: b, device_key: k, ext_params: { group: t } }) }, (e, r, d) => r && r.status == 200 ? n(1) : n(d || e)) }); if (s === 1) { console.log('✅Push success!'); break } else { console.log(`❌Push failed! >> ${s.message || s}`) } } }
387
388function nobyda() {
389 const times = 0

Callers 1

iQIYI.jsFile · 0.70

Calls 3

logMethod · 0.45
postMethod · 0.45
stringifyMethod · 0.45

Tested by

no test coverage detected