Discord Aviation Bot
Simple Discord bot for retrieving airport METAR / TAF data in Python
Dependencies
All modules can be installed using pip.
Example:
pip install requests
Commands Available
Commands are all prefixed by "."
- METAR / metar - Accepts airport ICAO code as an arguement, returns latest airport METAR report
- TAF / taf - Accepts airport ICAO code as an arguement, returns latest airport METAR report
- WX / wx / report - Accepts airport ICAO code as an arguement, returns latest airport METAR & TAF report
Notes
- Bot token is stored in a ".token.txt" file
- This is to safeguard bot tokens going public
- As such, the bot will not run without said file being present
Assets Used
- METAR/TAF API from Aviation Weather Center / National Weather Service, (NOAA) National Oceanic and Atmospheric Administration
- Plane icon by Freepik from flaticon.com
By Joseph Libasora
Last updated: 16.SEPT.2020, Python 3.8.2