Skip to content

Commit 0678777

Browse files
author
AffanTheBest
committed
Add snapdeal into whitelist
1 parent b7853eb commit 0678777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const processUrl = async (msg, ctx) => {
2727
const productUrl = "http" + url.split("http")[1].split(" ")[0].replace("dl.", "www.")
2828
if (isUrl(productUrl)) {
2929
const merchant = productUrl.replace("www.", "").split("//")[1].split(".")[0];
30-
if (merchant.match(/amazon|flipkart/gi)) {
30+
if (merchant.match(/amazon|flipkart|snapdeal/gi)) {
3131
const noOfProducts = (
3232
await manageProducts({ userId: ctx.from.id }, "read")
3333
)?.result?.length;

0 commit comments

Comments
 (0)