FLEX
FLEX Bot is a discord command bot that takes in data from various APIs to provide the community with information regarding their flight. FLEX is built around VATSIM network and X-Plane flight simulator.
Slash Commands
-
/test
Ping or Test the bot -
/scenery <Airport ID in X-Plane>
Check the X-Plane Scenery Gateway for the specified airport -
/atc
Give a list of online VATSIM ATC -
/track <VATSIM CID> <X-Plane .FMS file>
Actively track the flight in VATSIM and send a discord message when a controller is online within the planned route -
/remove <VATSIM CID>
Stop tracking the specified CID flight -
/metar <Airport ICAO codes>
Get the latest METAR report for the specified airfield
API Used
-
X-Plane Scenery Gateway
https://gateway.x-plane.com/apiv1/ -
VATSIM Core
https://api.vatsim.net/v2/ -
VATSIM Slurper
https://slurper.vatsim.net/ -
VATSIM AIP
https://my.vatsim.net/api/v2/aip/ -
VATSIM METAR
https://metar.vatsim.net/ -
Firestore
https://firestore.googleapis.com/v1/projects/flex/databases/ -
Aviation Weather Center
https://aviationweather.gov/data/api/
Webhooks Used
- Discord Messages Webhook
Services & Tools Used
- Cloudflare Worker
- Cloudflare Key-Value Pair
- Cloudflare CRON Trigger
- Firebase Firestore
Data Sources Used
- VATSPY Data Project
https://github.com/vatsimnetwork/vatspy-data-project