Skip to content

This project was designed to receive realtime arrival and departure information from any airport in the world utilizing the AviationStack API

License

Notifications You must be signed in to change notification settings

DanteSc03/DiscordFlightBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Airport Flight Bot

A Discord bot that provides real-time flight arrival and departure information for airports using their IATA code, powered by the AviationStack API.

Features

  • Responds to user greetings and prompts for an IATA airport code.
  • Retrieves and displays flight information including status, times, and airline details.
  • Saves flight data to local files departure_data.json and arrival_data.json.

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/DanteSc03/DiscordFlightBot.git
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Add your Discord Bot Token and AviationStack API key in the script:

    • Rename .env.sample to .env and paste in your keys.
  4. Run the bot:

    python bot.py
    

Usage

  1. Start the bot and greet it with hello in your Discord Server
  2. The bot will prompt for an IATA airport code (ex: LAX, JFK, etc...)
  3. Bot retrieves and displays flight information in the chat (data is also locally stored)

License

This project is under the MIT license. Feel free to fork the repo and make suggestions with pull requests. All suggestions are welcome.

About

This project was designed to receive realtime arrival and departure information from any airport in the world utilizing the AviationStack API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages