aboutsummaryrefslogtreecommitdiff
path: root/config.sh.sample
diff options
context:
space:
mode:
Diffstat (limited to 'config.sh.sample')
-rw-r--r--config.sh.sample16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.sh.sample b/config.sh.sample
index a954658..7df517c 100644
--- a/config.sh.sample
+++ b/config.sh.sample
@@ -1,16 +1,16 @@
#!/bin/bash
# Group the bot should monitor
-export GSB_GROUP_ID=""
-# Path where the bots data should be stored
-export GSB_STORE_PATH="~/geldschieberbot"
+export GSB_GROUP_ID="your_groupid"
+# File where the bot's state should be stored
+export GSB_STATE_FILE="${GSB_STORE_PATH}/state.json"
# Command the bot uses to send responses
+#export GSB_SEND_CMD="signal-cli -u <your-phone-number> send --message-from-stdin -g ${GSB_GROUP}"
export GSB_SEND_CMD=""
-# Signal user the bot should use
-export GSB_USER=""
-# create GSB_STORE_PATH
-if [[ ! -e "$GSB_STORE_PATH" ]]
+GSB_STATE_DIR="$(dirname "$GSB_STATE_FILE")"
+# create GSB_STATE_DIR
+if [[ ! -e "${GSB_STATE_DIR}" ]]
then
- mkdir -p $GSB_STORE_PATH 2>/dev/null
+ mkdir -p "${GSB_STATE_DIR}" 2>/dev/null
fi