Nodejs web scraper that reports pegaz updates using discord.js bot.
Requires node.js version ^16.6.1
.
(And chromium-browser package to run on linux)
- Install dependencies
npm install
- Generate config files
node bot.js
- Set discord bot token and pegaz login credentials in data/auth.json
- Generate bot invite link
npm run get-invite
and invite it to your server - Register slash commands
npm run register
(might take up to an hour before discord processes them) - Launch bot with
node bot.js
orpm2 start ecosystem.config.js
- When slash commands appear in discord, use
/toggle-alerts
to register channel as alert channel. Alternatively manually put channel id in "alert" array of data/channels.json and restart bot.