hotalert is a command line tool for task execution and alerting
Find a file
2022-11-03 22:04:14 +02:00
alert initial commit 2022-11-03 22:04:14 +02:00
cmd initial commit 2022-11-03 22:04:14 +02:00
logging initial commit 2022-11-03 22:04:14 +02:00
task initial commit 2022-11-03 22:04:14 +02:00
workload initial commit 2022-11-03 22:04:14 +02:00
.gitignore initial commit 2022-11-03 22:04:14 +02:00
go.mod initial commit 2022-11-03 22:04:14 +02:00
go.sum initial commit 2022-11-03 22:04:14 +02:00
LICENSE initial commit 2022-11-03 22:04:14 +02:00
main.go initial commit 2022-11-03 22:04:14 +02:00
Makefile initial commit 2022-11-03 22:04:14 +02:00
readme.md initial commit 2022-11-03 22:04:14 +02:00

Hot Alert

Introduction

Hotalert is a command line tool that for task execution and configuration. Tasks and alerts are defined in yaml files and the program parses the files, executes the tasks and emits alerts when the tasks conditions are met.

For example if you want to send a notification to your mobile phone when a keyword is found on a website you can use the webhook_discord alerter and the scrape_web task.

Example:

tasks:
  - options:
      url: [...]
      keywords: ["Episode 10", "Episode 11"]
    timeout: 10
    alerter: "webhook_discord"
    task: "scrape_web"
alerts:
  webhook_discord:
    webhook: https://discord.com/api/webhooks/[...]
    # $keywords can be used as a placeholder in the message, and it will be replaced with the actual keywords.
    message: "Hi, the keyword(s) `$keywords` was found on [...]"

Development

To build the program for Linux under Linux use the following command:

GOOS=linux GOARCH=arm64 go build

If you're using Windows use:

$env:GOOS = "linux"
$env:GOARCH = "arm"
$env:GOARM = 5 

go build -o hotalert .