before you say anything, shut up.
Fortniter is a Discord bot that uses node-libcurl to get the current progress of the wait time for Chapter 4 in Fortnite. It then posts the progress to a Discord channel.
A request is sent using node-libcurl to https://www.fortnitechapter4.com/api/event.json
with the User-Agent set to Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
. For some reason, Cloudflare blocks Fetch and Axios requests, but still allows curl. After the percent is obtained, it is then posted in an embed to Discord using Discord.js. (holy crap this paragraph was written by lem6ns and edited by normie because lemons needs to work on his grammar)
- Clone the git repo
- cd into the directory and run
npm or pnpm install
- Mofiy the
config.json
file to match your bot token and channel ID - Run
npm run start
to start the project - ???
- Profit
no
yes, cope.
3 hours