summaryrefslogtreecommitdiff
path: root/data.sh
diff options
context:
space:
mode:
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"