Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dantesc03/discordflightbot
This project was designed to receive realtime arrival and departure information from any airport in the world utilizing the AviationStack API
https://github.com/dantesc03/discordflightbot
api api-client api-rest discord discord-bot discord-py github-copilot learn python student-vscode
Last synced: 15 days ago
JSON representation
This project was designed to receive realtime arrival and departure information from any airport in the world utilizing the AviationStack API
- Host: GitHub
- URL: https://github.com/dantesc03/discordflightbot
- Owner: DanteSc03
- License: mit
- Created: 2024-09-13T10:26:40.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T18:37:54.000Z (2 months ago)
- Last Synced: 2024-10-09T15:41:04.312Z (about 1 month ago)
- Topics: api, api-client, api-rest, discord, discord-bot, discord-py, github-copilot, learn, python, student-vscode
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://aviationstack.com/).
## 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
- A [Discord Bot Token](https://discordpy.readthedocs.io/en/stable/discord.html).
- An API key from [AviationStack](https://aviationstack.com/).
- Python 3.6+.## Installation
1. Clone the repository:
```bash
git clone https://github.com/DanteSc03/DiscordFlightBot.git2. Install dependencies:
```bash
pip install -r requirements.txt3. 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:
```bash
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.