Personal telegram bot for openwrt
wget https://raw.githubusercontent.com/ardcsx/tgnodewrt/main/install.sh -O /bin/tgnodewrt && chmod +x /bin/tgnodewrt
tgnodewrt -iopkg update
opkg install node node-npm vnstat vnstati git git-httpnpm i -g yarn pm2- Clone this repository
git clone https://github.com/ardcsx/tgnodewrt.git
- Install dependencies (
yarnornpm install) - edit
.envfile, changeTOKENandADMIN_ID - Start the development environment
npm run dev or yarn dev
cp /root/tgnodewrt/etc/init.d/tgnodewrt /etc/init.d/
/etc/init.d/tgnodewrt enable
/etc/init.d/tgnodewrt start/root/tgnodewrt/bot.sh
Telegram NodeJS Openwrt Menu
1) add bot crontab 3) add speedtest crontab 5) install bot
2) del bot crontab 4) del speedtest crontab 6) QuitAdd to scheduled task
0 */1 * * * /root/tgnodewrt/command/sh/speed.sh/ping - bot response time
/system_info - router system information
/modeminfo - allcatel modem information
/my_ip - IP information
/speedtest - run speedtest ookla
/speeedtest_log - get speedtest log
/vnstat - show vnstat menu
/restart_bot - restart tgnodeWRT bot
/restart - restart router
.bash {cmd}
/kuotaxl - cek informasi no xl
!setxl (nohp) - set no xl
.tts {text} - text to speech