From 0c965d40d3a1f77b9f6242d7bcd6ad139f123afd Mon Sep 17 00:00:00 2001 From: MoviesHuntHD <68388096+MoviesHuntHD@users.noreply.github.com> Date: Mon, 15 Aug 2022 17:36:02 +0530 Subject: [PATCH 1/3] Update utils.js --- utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index d04059a..b5e049a 100644 --- a/utils.js +++ b/utils.js @@ -39,7 +39,7 @@ const getProductDetails = async(url, merchant) => { const $ = cheerio.load(res.data); const selector = selectors[merchant]; let link = new URL(url); - if(merchant == 'amazon') link.searchParams.set('tag', 'asloot-21'); + if(merchant == 'amazon') link.searchParams.set('tag', 'dworth-21'); link = link.toString(); const price = parseInt($(selector.price1).text().trim().replace(/^\D+|[^0-9.]/g, '')) || parseInt($(selector.price2).text().trim().replace(/^\D+|[^0-9.]/g, '')); const title = $(selector.title).text().trim(); @@ -54,4 +54,4 @@ const getProductDetails = async(url, merchant) => { } } -module.exports = { isUrl, getRandomId, getProductDetails }; \ No newline at end of file +module.exports = { isUrl, getRandomId, getProductDetails }; From 89755ccd436caa3b0fcdcf99cf463d77078df627 Mon Sep 17 00:00:00 2001 From: MoviesHuntHD <68388096+MoviesHuntHD@users.noreply.github.com> Date: Mon, 15 Aug 2022 17:41:27 +0530 Subject: [PATCH 2/3] Update bot.js --- bot.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bot.js b/bot.js index f9358f4..679e9fb 100644 --- a/bot.js +++ b/bot.js @@ -11,12 +11,8 @@ const reply_markup = { //common repky markup inline_keyboard: [ [ - { text: "👨‍💻 Developer", url: "https://github.com/AffanTheBest" }, - { text: "🛒 Deals Channel", url: "https://t.me/aslootdeals" }, - ], - [ - { text: "🔃 Updates", url: "https://t.me/asprojects" }, - { text: "💁‍♂️ Support", url: "https://t.me/assupportchat" }, + { text: "🛒 Deals Channel", url: "https://t.me/TheDealsMaster" }, + { text: "💁‍♂️ Support", url: "https://t.me/TDM_Owner" }, ], ], }; From f5ea549996decd955358af8ca9ccf5a1b7591602 Mon Sep 17 00:00:00 2001 From: MoviesHuntHD <68388096+MoviesHuntHD@users.noreply.github.com> Date: Mon, 15 Aug 2022 17:43:27 +0530 Subject: [PATCH 3/3] Update app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 6bf4933..b1acff5 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,7 @@ "description": "A telegram bot which can track prices for amazon and flipkart products. (Soon more)", "keywords": ["price-tracker", "amazon", "flipkart", "ecommerce", "tracker", "telegram", "bot"], "repository": "https://github.com/AffanTheBest/price-tracker", - "website": "https://asloot.cf", + "website": "https://dealsworth.in", "scripts": { "worker": "npm start" }, @@ -38,4 +38,4 @@ } }, "addons": [] - } \ No newline at end of file + }