2018-02-25 08:28:32 -05:00
|
|
|
# Example env vars for bot
|
2018-10-16 11:54:47 -04:00
|
|
|
# Copy this to `env.sh` and edit with your real vars -- it is ignored by git
|
2018-02-25 08:28:32 -05:00
|
|
|
|
2018-10-16 11:54:47 -04:00
|
|
|
export TELEGRAM_BOT_POSTGRES_URL="postgresql://localhost/postgres"
|
2018-02-25 08:28:32 -05:00
|
|
|
|
|
|
|
read -r -d '' MESSAGE_BAN_PATTERNS << 'EOF'
|
|
|
|
# ETH
|
|
|
|
# e.g. F8C8405e85Cfe42551DEfeB2a4548A33bb3DF840
|
|
|
|
[0-9a-fA-F]{40,40}
|
|
|
|
# BTC
|
|
|
|
# e.g. 13qt9rCA2CQLZedmUuDiPkwdcAJLsuTvLm
|
|
|
|
|[0-9a-zA-Z]{34,34}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
read -r -d '' MESSAGE_HIDE_PATTERNS << 'EOF'
|
|
|
|
# ETH
|
|
|
|
# e.g. F8C8405e85Cfe42551DEfeB2a4548A33bb3DF840
|
|
|
|
|[0-9a-fA-F]{40,40}
|
|
|
|
# BTC
|
|
|
|
# e.g. 13qt9rCA2CQLZedmUuDiPkwdcAJLsuTvLm
|
|
|
|
|[0-9a-zA-Z]{34,34}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
export TELEGRAM_BOT_TOKEN="XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
|
|
|
|
|
|
|
export NAME_BAN_PATTERNS="admin$"
|
|
|
|
|
|
|
|
export CHAT_IDS="-250531994"
|
2018-10-16 11:54:47 -04:00
|
|
|
|
|
|
|
# Needed to make these env vars visible to python
|
|
|
|
export MESSAGE_BAN_PATTERNS=$MESSAGE_BAN_PATTERNS
|
|
|
|
export MESSAGE_HIDE_PATTERNS=$MESSAGE_HIDE_PATTERNS
|