Update toggles.js
This commit is contained in:
@@ -1,42 +1,32 @@
|
|||||||
module.exports = {
|
const axios = require('axios');
|
||||||
"minVersionCode": 0,
|
|
||||||
"lastVersionCode": 0,
|
const TOGGLES_URL = 'https://api.anixart.tv/config/toggles?version_code=24121614';
|
||||||
"whatsNew": "Сделано с ❤️ от Seele",
|
|
||||||
"downloadLink": "null",
|
/**
|
||||||
"minGPVersionCode": 0,
|
* Функция для получения и изменения структуры toggles.
|
||||||
"lastGPVersionCode": 0,
|
*/
|
||||||
"gpWhatsNew": "null",
|
async function getToggles() {
|
||||||
"gpDownloadLink": "null",
|
try {
|
||||||
"overrideGPVersion": false,
|
const response = await axios.get(TOGGLES_URL);
|
||||||
"inAppUpdates": false,
|
const data = response.data;
|
||||||
"inAppUpdatesImmediate": false,
|
|
||||||
"inAppUpdatesFlexibleDelay": 0,
|
// Изменяем структуру полей
|
||||||
"impMessageEnabled": true,
|
data.impMessageEnabled = true; // Включаем важное сообщение
|
||||||
"impMessageText": "💬 <b>Заходи <u>к нам в чатик</u>, семпай! »</b>",
|
data.impMessageText = "💬 <b>Заходи <u>к нам в чатик</u>, семпай!";
|
||||||
"impMessageBackgroundColor": "",
|
data.impMessageBackgroundColor = ""; // Пример: золотой фон
|
||||||
"impMessageTextColor": "",
|
data.impMessageTextColor = ""; // Пример: черный текст
|
||||||
"impMessageLink": "https://t.me/seele_community",
|
data.impMessageLink = "https://t.me/seele_community";
|
||||||
"adBannerBlockId": "R-M-1773808-1",
|
|
||||||
"adBannerSizeType": 1,
|
data.minVersionCode = 0; // Изменяем минимальный код версии
|
||||||
"adInterstitialBlockId": "R-M-1773808-2",
|
data.lastVersionCode = 0; // Обновляем последний код версии
|
||||||
"adBannerDelay": 10,
|
data.whatsNew = "null";
|
||||||
"adInterstitialDelay": 300,
|
data.downloadLink = "null";
|
||||||
"kodikVideoLinksUrl": "https://aniqit.com/get-video-info",
|
|
||||||
"kodikIframeAd": false,
|
return data;
|
||||||
"sibnetRandUserAgent": true,
|
} catch (error) {
|
||||||
"sibnetUserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/83.0.4103.88 Mobile/15E148 Safari/604.1",
|
console.error("Ошибка при запросе toggles:", error.message);
|
||||||
"torlookUrl": "https://tl.anixart.tv/",
|
throw new Error("Не удалось загрузить данные toggles.");
|
||||||
"apiUrl": "",
|
}
|
||||||
"apiAltUrl": "https://api-alt.anixart.app/",
|
}
|
||||||
"apiAltAvailable": true,
|
|
||||||
"sponsorshipPromotion": false,
|
module.exports = getToggles;
|
||||||
"sponsorshipText": "Хз что писать",
|
|
||||||
"sponsorshipAvailable": true,
|
|
||||||
"pageNoConnectionUrl": "https://anixhelper.github.io/pages/no_connection.html",
|
|
||||||
"snowfall": true,
|
|
||||||
"searchBarIconUrl": "https://s3.anixstatic.com/events/ic_new_year_02.webp",
|
|
||||||
"searchBarIconTint": "false",
|
|
||||||
"searchBarIconAction": "1",
|
|
||||||
"searchBarIconValue": "Пусть в 2025 новом году твой список «В «планах» станет немножко короче 📝\n\n- - - - - - - - - - - - - - - - - - - -\nС новогодним настроением,\nКоманда Аниксарт! и ваши любимчик Seele ❤️ 🎄",
|
|
||||||
"min_blog_create_rating_score": 3
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user