aboutsummaryrefslogtreecommitdiff
path: root/example/simple.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/simple.sh')
-rwxr-xr-xexample/simple.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/simple.sh b/example/simple.sh
new file mode 100755
index 0000000..c90c451
--- /dev/null
+++ b/example/simple.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+source "$(dirname -- "$0")"/../load.sh
+
+atrocity_debug Simple example loaded
+
+export ATROCITY_TOKEN="MzEyMjU2ODcxMTc0MTExMjMz.GPe_v6.4Acwm7tje3sMEvUu05NPyQrZalh8knTIHPgLmk"
+
+atrocity_dispatch() {
+ echo "Dispatching $1"
+}
+
+atrocity_connect
+
+atrocity_loop