Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import StealthPlugin from "puppeteer-extra-plugin-stealth";
import SmartProxy from "zyte-smartproxy-puppeteer";
import { default as twilio } from 'twilio'

const accountSid = '<INSERT TWILIO ACCOUNT SID>';
const authToken = '<INSERT TWILIO AUTH TOKEN>';
const accountSid = 'ACe836bf5808d800d423563ab6affe99d2';
const authToken = '50bba6cd212259f62a12acf4409800a2';
const client = twilio(accountSid, authToken);

puppeteer.use(StealthPlugin())
Expand Down Expand Up @@ -56,8 +56,8 @@ const getAlerts = async () => {
await client.messages
.create({
body: 'ALERT: Resale for ' + event.at(3) + ' available here: ' + process.argv[2],
from: '<INSERT TWILIO PHONE NUMBER>',
to: '<INSERT DESINATION PHONE NUMBERS>'
from: '+447883302103',
to: '+447538242105'
})
console.log('SMS sent successfully! 🌟');
await browser.close();
Expand All @@ -84,8 +84,8 @@ const getAlerts = async () => {
await client.messages
.create({
body: 'ALERT: Resale for ' + event.at(3) + ' available here: ' + process.argv[2],
from: '<INSERT TWILIO PHONE NUMBER>',
to: '<INSERT DESINATION PHONE NUMBERS>'
from: '+447883302103',
to: '+447538242105'
})
console.log('SMS sent successfully! 🌟');
await browser.close();
Expand Down