Last active
July 21, 2020 04:58
-
-
Save zthxxx/111ea45c357fb14accb65168289e2570 to your computer and use it in GitHub Desktop.
install ehForwarderBot 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install -y python3-pip libopus0 ffmpeg libmagic1 | |
pip3 install setuptools ehforwarderbot efb-telegram-master efb-wechat-slave | |
EFB_DATA_PATH="${HOME}/.ehforwarderbot" | |
EFB_PROFILE="${EFB_DATA_PATH}/profiles/default" | |
mkdir -p ${EFB_PROFILE}/blueset.telegram | |
cat > ${EFB_PROFILE}/config.yaml <<-EOF | |
master_channel: blueset.telegram | |
slave_channels: | |
- blueset.wechat | |
EOF | |
cat > ${EFB_PROFILE}/blueset.telegram/config.yaml <<-EOF | |
token: "" | |
admins: | |
- 12345 | |
EOF | |
vim ${EFB_PROFILE}/blueset.telegram/config.yaml | |
# nohup ehforwarderbot &>> efb.log & | |
# cat efb.log && tail -f efg.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment