Skip to content

DJey/telegram-bot-bash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

#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!

About

Telegram bot for Entware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%