Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbarnes94/fortnite-weapons-bot
A bot that returns fortnite weapon statistics based on input from Discord users. Written in TypeScript.
https://github.com/tbarnes94/fortnite-weapons-bot
crawler discord discord-bot discord-js typescript2
Last synced: about 2 months ago
JSON representation
A bot that returns fortnite weapon statistics based on input from Discord users. Written in TypeScript.
- Host: GitHub
- URL: https://github.com/tbarnes94/fortnite-weapons-bot
- Owner: tbarnes94
- Created: 2018-03-08T13:27:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T10:32:05.000Z (about 4 years ago)
- Last Synced: 2024-10-16T15:24:33.982Z (3 months ago)
- Topics: crawler, discord, discord-bot, discord-js, typescript2
- Language: TypeScript
- Size: 122 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fortnite Armory (Deprecated)
A bot that returns fortnite weapon statistics based on input from Discord users. Written in TypeScript.* bot.ts is the bot itself. taken some code from https://github.com/MyMICDS/MyMICDS-Discord-Bot.
* ignore ./src/commands/* --> this was left in as a reference in case I should need to make any more commands.
* ./src/web-crawlers/all/web-crawler-all.ts creates the json in ./database/weapons/all/*, this is a json representation of the information
* at https://db.fortnitetracker.com/weapons (Table View)* ./src/web-crawlers/all/web-crawler-one.ts creates the json in ./database/weapons/one/*, this is a json representation of the information
* at https://db.fortnitetracker.com/weapons/. There is some information injected from the **all** jsonUPDATE (7/25/2018): Added windows bash scripts to automate some processes:
- **environment.bat**: installs all the node dependencies (global and local) that you will require to run the webcrawlers/bot.
- **webcrawlers.bat**: runs the ALL then ONE weapon webcrawlers that generate JSONs in the ./database/weapons/* folder.
- **bot.bat**: runs the bot indefinitely (requires a secret key for your bot under the Discord Developer portal).
- **armory.bat**: runs the above three scripts in listed sequence.Bugs:
- ~~some jsons generated by web-crawler-one.js are offset for some reason (they are the stats for other weapons)~~ [FIXED!]
- ~~not all incorrect command syntax are covered by try-catch blocks, need this to prevent crashes~~ [FIXED!]
- ~~help message can be formatted better (also triggers incorrect syntax message)~~ [FIXED!]
- ~~lootProbability needs some work, as there are nested json in the values for these~~ [Not In Use]