MCPcopy Create free account
hub / github.com/NobyDa/Script / runs

Function runs

Bahamut/BahamutAnimeAds.js:21–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}));
20
21async function runs() {
22 if (req.url.includes('token.php')) {
23 if (rsp.ad) {
24 rsp.ad.minor = [];
25 rsp.ad.major = [];
26 }
27 if (rsp.data && rsp.data.ad) {
28 rsp.data.ad.minor = [];
29 rsp.data.ad.major = [];
30 }
31 }
32 if (req.url.includes('m3u8.php') && (rsp.message || rsp.error)) {
33 await adURL('');
34 await new Promise(r => setTimeout(r, 25000));
35 await adURL('end');
36 rsp = await playURL();
37 }
38}
39
40function adURL(str) {
41 return new Promise((res) => {

Callers 1

BahamutAnimeAds.jsFile · 0.70

Calls 2

adURLFunction · 0.85
playURLFunction · 0.85

Tested by

no test coverage detected