Update toggles.js
This commit is contained in:
@@ -1,42 +1,32 @@
|
||||
module.exports = {
|
||||
"minVersionCode": 0,
|
||||
"lastVersionCode": 0,
|
||||
"whatsNew": "Сделано с ❤️ от Seele",
|
||||
"downloadLink": "null",
|
||||
"minGPVersionCode": 0,
|
||||
"lastGPVersionCode": 0,
|
||||
"gpWhatsNew": "null",
|
||||
"gpDownloadLink": "null",
|
||||
"overrideGPVersion": false,
|
||||
"inAppUpdates": false,
|
||||
"inAppUpdatesImmediate": false,
|
||||
"inAppUpdatesFlexibleDelay": 0,
|
||||
"impMessageEnabled": true,
|
||||
"impMessageText": "💬 <b>Заходи <u>к нам в чатик</u>, семпай! »</b>",
|
||||
"impMessageBackgroundColor": "",
|
||||
"impMessageTextColor": "",
|
||||
"impMessageLink": "https://t.me/seele_community",
|
||||
"adBannerBlockId": "R-M-1773808-1",
|
||||
"adBannerSizeType": 1,
|
||||
"adInterstitialBlockId": "R-M-1773808-2",
|
||||
"adBannerDelay": 10,
|
||||
"adInterstitialDelay": 300,
|
||||
"kodikVideoLinksUrl": "https://aniqit.com/get-video-info",
|
||||
"kodikIframeAd": false,
|
||||
"sibnetRandUserAgent": true,
|
||||
"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",
|
||||
"torlookUrl": "https://tl.anixart.tv/",
|
||||
"apiUrl": "",
|
||||
"apiAltUrl": "https://api-alt.anixart.app/",
|
||||
"apiAltAvailable": true,
|
||||
"sponsorshipPromotion": false,
|
||||
"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
|
||||
};
|
||||
const axios = require('axios');
|
||||
|
||||
const TOGGLES_URL = 'https://api.anixart.tv/config/toggles?version_code=24121614';
|
||||
|
||||
/**
|
||||
* Функция для получения и изменения структуры toggles.
|
||||
*/
|
||||
async function getToggles() {
|
||||
try {
|
||||
const response = await axios.get(TOGGLES_URL);
|
||||
const data = response.data;
|
||||
|
||||
// Изменяем структуру полей
|
||||
data.impMessageEnabled = true; // Включаем важное сообщение
|
||||
data.impMessageText = "💬 <b>Заходи <u>к нам в чатик</u>, семпай!";
|
||||
data.impMessageBackgroundColor = ""; // Пример: золотой фон
|
||||
data.impMessageTextColor = ""; // Пример: черный текст
|
||||
data.impMessageLink = "https://t.me/seele_community";
|
||||
|
||||
data.minVersionCode = 0; // Изменяем минимальный код версии
|
||||
data.lastVersionCode = 0; // Обновляем последний код версии
|
||||
data.whatsNew = "null";
|
||||
data.downloadLink = "null";
|
||||
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error("Ошибка при запросе toggles:", error.message);
|
||||
throw new Error("Не удалось загрузить данные toggles.");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = getToggles;
|
||||
|
||||
Reference in New Issue
Block a user