summaryrefslogtreecommitdiff
path: root/data.sh
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-16 23:10:37 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-16 23:10:37 +0200
commit5d9879e10d52b58c6ac519a200ddcb80d5905d5f (patch)
treeeb45251e3d012176036a8b6421273eb7e71baf4b /data.sh
parent788470b8fd1e645d41d456183443fb4f4534c511 (diff)
downloadforgebot-5d9879e10d52b58c6ac519a200ddcb80d5905d5f.tar.gz
forgebot-5d9879e10d52b58c6ac519a200ddcb80d5905d5f.tar.bz2
forgebot-5d9879e10d52b58c6ac519a200ddcb80d5905d5f.zip
Add notifications
Diffstat (limited to 'data.sh')
-rw-r--r--data.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.sh b/data.sh
index 3a16c5b..a8cd51b 100644
--- a/data.sh
+++ b/data.sh
@@ -1,6 +1,10 @@
export FORGEBOT_DATA_DIR="forgebotdata"
mkdir -p "$FORGEBOT_DATA_DIR"
+list_all_watched_accounts() {
+ grep --files-with-matches -rE '.*' "$FORGEBOT_DATA_DIR" | sed s'|.*/||'
+}
+
list_watchers() {
# Usage: list_watchers <minecraft uuid>
cat "$FORGEBOT_DATA_DIR/$1"