First of all, you need to install the dependencies:
npm installThen, you need to create a .env file and add the following:
USR=your_username
PASSW=your_password
SESSION=
URL=https://accounts.snapchat.com/accounts/v2/login
CHAT=https://web.snapchat.comWhich one is the your shortcut, and then change the index.js file with the correct number.
const buttons = await page.$$('button.c47Sk');
await buttons[0].click(); // 1 is the second button (0 is the first button) these are shortcut buttonsnode index.js@echo off
cd /d C:\path\to\your\project && node index.jsSearch App > Task Scheduler > Create Basic Task > Next > Browse > C:\path\to\your\bat\file.bat > Next > Next > Set the trigger > Set the actions > Set the conditions > Create > Ok
