aboutsummaryrefslogtreecommitdiff
path: root/config.sh.sample
blob: 747236e232ef1ffa573243b4664675199471ab39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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="<your-phone-number>"
# 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