BaTbot: Telegram Bot written in bash script
Can i manage my home-server using Telegram?
batbot.sh is a bash Telegram Bot developed by Andrea Menin.
It can reply to user messages, execute commands, and others cool features.
https://www.youtube.com/watch?v=CZbD49nzWSE
Usage
`./botbat.sh [-t "<token>"] [-c <seconds>]`
`./botbat.sh -h`
- -t Set Telegram Bot Token (see https://core.telegram.org/bots/api )
- -c Check for new messages every (n) seconds
Usage examples
`["/hello"]="echo Hi"`
this command trigger the /hello message from a user, execute the system command echo Hi and return the command output to the user via message.
Check server uptime:
`["/uptime"]="/usr/bin/uptime"`
Free disk space:
`["/disks"]="/bin/df -h"`
Execute external script:
`["/auth ([a-zA-Z0-9]+)"]="/usr/local/bin/auth.sh @R1"`
Don’t try this at home:
["/exec (.*)"]="exec @R1"
More information and downloads
-
t