Little app for scrap https://mywaifulist.moe/ and get the Waifu of the day section and publish in a discord text channel.
- Create a web hook in your discord server.
- Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
- Click Webhooks
- Click Create Webhook
- Type in a name
- Copy the Webhook URL (you can use the Copy button)
- Click Save
- Copy .env template and rename it as .env paste the webhook url here.
- if you want to run in a CI or something like that set a env variable WEB_HOOK_URL with your Webhook URL as a value
- run
npm run dev
If you are running and debuggin locally probably you want to see step by step what's going on with the script, in that case change:
const browser = await puppeteer.launch();
to const browser = await puppeteer.launch({headless:false, args: ['--start-maximized'] });