Skip to content

kmsutto/project-wrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

project-wrt - ultra-lightweight telegram bot

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.

features

  • [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

prerequisites

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:

install dependecies

opkg update
opkg install lua lua-cjson ca-bundle etherwake

create script, and configure bot

just 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.lua

setup 24/7 work

just paste the code from github and make it executable

vi /etc/init.d/tgbot
chmod +x /etc/init.d/tgbot

About

project-wrt: this is a simple bot for managing open-wrt routers

Topics

Resources

Stars

Watchers

Forks

Contributors