/fortniter

Sends the percent of the next chapter in Fortnite to my Discord server.

Primary LanguageJavaScriptOtherNOASSERTION

fortniter

before you say anything, shut up.

What is fortniter?

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.

How?

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)

Well, how can I use it, even though it's going to be obsolete in less than 24 hours?

  • 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

FAQ

are you gay?

no

do you play fornite?

yes, cope.

how long did this take to make?

3 hours

i love fortnite feet pictures. can you send me some?