peliprint/blueprint/lib/telemetry.sh
purple 75907bd5df Re-do the entire .blueprint folder structure.
Changing all documentation is going to suck lmao
2023-06-27 21:08:01 +02:00

10 lines
360 B
Bash

#!/bin/bash
#
# This script has been created as part of the Blueprint source code
# and may be intergrated directly into the core in the future.
sendTelemetry() {
key=$(cat .blueprint/data/internal/db/telemetry_id);
if [[ $key == "KEY_NOT_UPDATED" ]]; then exit 1;fi;
curl --location --silent "http://data.ptero.shop:3481/send/$key/$1" > /dev/null;
}