#!/bin/bash # Group the bot should monitor export GSB_GROUP_ID="your_groupid" # File where the bot's state should be stored export GSB_STATE_FILE="${GSB_STORE_PATH}/state.json" # User account to retrieve messages in the run.sh script export GSB_USER="" # Command the bot uses to send responses #export GSB_SEND_CMD="signal-cli -u ${GSB_USER} send --message-from-stdin -g ${GSB_GROUP}" export GSB_SEND_CMD="" GSB_STATE_DIR="$(dirname "$GSB_STATE_FILE")" # create GSB_STATE_DIR if [[ ! -e "${GSB_STATE_DIR}" ]] then mkdir -p "${GSB_STATE_DIR}" 2>/dev/null fi