this bot created for controlling openwrt routers, written in pure lua, designed for routers with extremely limited storage (takes less than 1.5MB along with dependencies),
no python, no heavy node.js environments. just lua, uclient-fetch, and ASCII-art aesthetics.
- [i] status: uptime, load, free space, and active packages count
- [>] console: fully functional remote ssh-like console right in your telegram chat
- [+] devices: view all currently connected devices and their MAC addresses
- [~] speed: real-time network speed measurement (download/upload)
- [^] wake pc: wol functionality to wake up your desktop PC remotely
- [*] reboot: safely reboot the router, restart Wi-Fi, or restart the network interface
- [ꗃ] secure: hardcoded telegram admin id, ignored by everyone else
want to get full control over your openwrt router via telegram? then this category is for you. just connect to your openwrt router via SSH and install the required dependencies:
opkg update
opkg install lua lua-cjson ca-bundle etherwakejust insert the code from github and enter the token at the very top, mac address (if you want wol) and id tg
vi /root/bot.lua
chmod +x /root/bot.luajust paste the code from github and make it executable
vi /etc/init.d/tgbot
chmod +x /etc/init.d/tgbot