Nothing Special   »   [go: up one dir, main page]

Skip to content

It is a slack bot developed in python in which user can run /slash commands.

Notifications You must be signed in to change notification settings

vipin0/flight-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight_BOT

Project Description

It is a slack bot developed in python in which user can run /slash commands. This project uses OpenSky REST API.

Installation

  1. Clone the repository and navigate to filght-bot directory.
git clone https://github.com/vipin0/filght-bot.git
  1. Install the required dependencies.
pip install -r requirements.txt
  1. It's takes the following environment variables, create a file .env with the content of .env.sample.
SLACK_BOT_TOKEN=your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
PORT=4444
  1. Start the development server.
python bot.py

Available /[slash]commands

  • /get_flights origin_code destination_code [YYYY-MM-DD] [no_passengers] [travel_class]

This command list all the flights between given airports on gievn date.

You must provide origin airport code and destination airport code.
Default search date to today's date.
Default no_passengers is 1
Default travel_class is 'E' or you can use 'B'.

  • /list_arrivals airport_code [begintime] [endtime]

This list all the flights arriving on the given airports.

  • /list_departures airport_code [begintime] [endtime]

This list all the flights departing from the given airports.

  • /help

This command show the help menu for the bot.

About

It is a slack bot developed in python in which user can run /slash commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published