Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aykhans/azal-bot
Receive Notifications for Flights on azal.az
https://github.com/aykhans/azal-bot
bot go notification
Last synced: 7 days ago
JSON representation
Receive Notifications for Flights on azal.az
- Host: GitHub
- URL: https://github.com/aykhans/azal-bot
- Owner: aykhans
- Created: 2024-08-22T11:15:37.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T13:38:33.000Z (3 months ago)
- Last Synced: 2024-08-25T14:38:34.517Z (3 months ago)
- Topics: bot, go, notification
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Azal-Bot: Receive Notifications for Flights on https://azal.az
## Installation
### With Docker (Recommended)
Pull the Docker image from Docker Hub:
```sh
docker pull aykhans/azal-bot:latest
```### With Binary File
You can download the binaries from the [releases](https://github.com/aykhans/azal-bot/releases) section.### Build from Source
To build Azal-Bot from source, you need to have [Go 1.22+](https://golang.org/dl/) installed. Follow these steps:1. **Clone the repository:**
```sh
git clone https://github.com/aykhans/azal-bot.git
```2. **Navigate to the project directory:**
```sh
cd azal-bot
```3. **Build the project:**
```sh
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:
```sh
azal-bot \
--first-date 2024-09-24 \
--last-date 2024-09-27 \
--from NAJ \
--to BAK
```
With Docker:
```sh
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:
```sh
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:
```sh
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"
```