···2233Sends alerts for any arbitrary [CTFd](https://ctfd.io/) instance via [ntfy](https://ntfy.sh/)
4455+
66+57## Install
6879You can download a pre-built binary from the releases or you can use the following options
···1214# Go
1315go install github.com/taciturnaxolotl/ctfd-alerts@latest
1416```
1717+1818+If you need a systemd service file there is one in `ctfd-alerts.service`
15191620### Nix
1721···2529```nix
2630# In your flake.nix
2731{
2828- inputs.akami.url = "github:taciturnaxolotl/ctfd-alerts";
3232+ inputs.ctfd-alerts.url = "github:taciturnaxolotl/ctfd-alerts";
29333030- outputs = { self, nixpkgs, akami, ... }: {
3434+ outputs = { self, nixpkgs, ctfd-alerts, ... }: {
3135 # Access the package as:
3236 # ctfd-alerts.packages.${system}.default
3337 };
3438}
3939+```
4040+4141+## Config
4242+4343+The config for the bot is quite simple. Create a `config.toml` file in the same directory as the binary (or link to the config location with `-c ./path/to/config/config.toml`) with the following format:
4444+4545+```toml
4646+debug = true
4747+interval = 100 # defaults to 300 if unset
4848+user = "echo_kieran"
4949+5050+[ctfd]
5151+api_base = "http://163.11.237.79/api/v1"
5252+api_key = "ctfd_10698fd44950bf7556bc3f5e1012832dae5bddcffb1fe82191d8dd3be3641393"
5353+5454+[ntfy]
5555+api_base = "https://ntfy.sh/"
5656+acess_token = ""
5757+topic = "youralert"
3558```
36593760Written in go. If you have any suggestions or issues feel free to open an issue on my [tangled](https://tangled.sh/@dunkirk.sh/ctfd-alerts) knot