2024-08-22 15:17:03 +04:00
2024-08-22 15:17:03 +04:00
2024-08-22 15:17:03 +04:00
2024-08-22 15:17:03 +04:00
2024-08-22 15:17:03 +04:00
2024-08-30 22:34:11 +04:00
2024-08-22 16:02:28 +04:00

Azal-Bot: Receive Notifications for Flights on https://azal.az

Installation

Pull the Docker image from Docker Hub:

docker pull aykhans/azal-bot:latest

With Binary File

You can download the binaries from the releases section.

Build from Source

To build Azal-Bot from source, you need to have Go 1.22+ installed. Follow these steps:

  1. Clone the repository:

    git clone https://github.com/aykhans/azal-bot.git
    
  2. Navigate to the project directory:

    cd azal-bot
    
  3. Build the project:

    go build -ldflags "-s -w" -o azal-bot
    

This will generate an executable named azal-bot in the project directory.

Usage

Basic Usage

Search for flights from 2024-09-24T00:00:00 to 2024-09-27T23:59:59 every 60 seconds, then print the results to the CLI:

azal-bot \
    --first-date 2024-09-24 \
    --last-date 2024-09-27 \
    --from NAJ \
    --to BAK 

With Docker:

docker run --rm -d \
    aykhans/azal-bot \
    --first-date 2024-09-24 \
    --last-date 2024-09-27 \
    --from NAJ \
    --to BAK 

With All Flags

Search for flights from 2024-09-24T15:00:00 to 2024-09-27T21:32:10 every 120 seconds, print the results to the CLI, and send a notification via Telegram if any flights are found:

azal-bot \
    --first-date 2024-09-24T15:00:00 \
    --last-date 2024-09-27T21:32:10 \
    --repeat-interval 120 \  # seconds
    --from NAJ \
    --to BAK \
    --telegram-bot-key "key" \
    --telegram-chat-id "id"

With Docker:

docker run --rm -d \
    aykhans/azal-bot \
    --first-date 2024-09-24T15:00:00 \
    --last-date 2024-09-27T21:32:10 \
    --repeat-interval 120 \  # seconds
    --from NAJ \
    --to BAK \
    --telegram-bot-key "key" \
    --telegram-chat-id "id"
Description
Receive Notifications for Flights on azal.az
Readme 37 KiB
Languages
Go 94.3%
Shell 3.9%
Dockerfile 1.8%