Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.04 KB

#bashbot

This is a Telegram bot written in bash, running on home router.

Installation

opkg install bash curl dtach
  • Download bot binaries and start script:
curl --output /opt/bin/bashbot.sh --insecure https://raw.githubusercontent.com/ryzhovau/telegram-bot-bash/master/opt/bin/bashbot.sh
curl --output /opt/bin/JSON.sh --insecure https://raw.githubusercontent.com/ryzhovau/telegram-bot-bash/master/opt/bin/JSON.sh
curl --output /opt/etc/init.d/S51bashbot  --insecure https://raw.githubusercontent.com/ryzhovau/telegram-bot-bash/master/opt/etc/init.d/S51bashbot
chmod +x /opt/bin/bashbot.sh
chmod +x /opt/bin/JSON.sh
chmod +x /opt/etc/init.d/S51bashbot
  • Insert bot's token to access the HTTP API to TOKEN constant at /opt/bin/bashbot.sh
  • Run bot by typing:
/opt/etc/init.d/S51bashbot start

Have fun!