Skip to content

Live Status monitoring telegram bot for internet providers.

Notifications You must be signed in to change notification settings

rayanfer32/RRBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Deploy in terminal
git clone https://github.com/Rayanfer32/RRBOT.git
pip3 install -r requirements.txt
cd RRBOT
python3 bot.py
  • Setup

create secrets.env file in the RRBOT directory add this line

BOT_TOKEN=YOUR_BOT_TOKEN
ENABLED_USERS = "3082434,3904883"
  • Bot Commands
start - Check if the bot is Alive.
help - Useful commands.
tasks - Check Running tasks
  • Autostart at boot
mkdir /home/pi/.config/autostart
nano /home/pi/.config/autostart/rrbot.desktop
[Desktop Entry]
Name=RRBOT
Comment=RRBOT
Icon=/usr/share/icons/nuoveXT2/128x128/apps/utilities-system-monitor.png
Exec=lxterminal --working-directory=/home/pi/rrbot -e python3 bot.py
Type=Application
Terminal=false
Categories=None;
  • Install mate system task manager

sudo apt-get install -y mate-system-monitor

  • Measure temperature

vcgencmd measure_temp

  • GUI text editor

sudo apt install gedit

  • Install Telnet

sudo apt install telnet

  • Install nodejs and npx

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt install nodejs

  • Install fping

sudo apt install fping

  • BASH aliases
alias temp='/opt/vc/bin/vcgencmd measure_temp'
alias pingg='fping -l -t100 www.google.com'
alias tempp='while true;do temp;sleep 3s;done'
alias speedtestt='speedtest-cli --server 7379'
alias cloudtest='npx speed-cloudflare-cli'
alias pingt='__pingt() { s=0; while :; do s=$(($s+1)); result=$(ping $1 -c1 -W1 |/bin/grep from) && echo "$result, seq=$s" && sleep 1 || echo timeout; done }; __pingt $1'
alias speedtestt='speedtest-cli --server 24161'
alias speedgo='/home/pi/./speedtest-go --server 7379'
alias fpingg='fping -l -t100 '
  • Selenium Firefox setup
pip install selenium 
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux32.tar.gz
tar xvf geckodriver*
cp geckodriver /usr/local/bin
  • fast cli issue fix
https://issuehunt.io/r/sindresorhus/fast-cli/issues/59

About

Live Status monitoring telegram bot for internet providers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published