10000 GitHub - montypaws/PingBot: A Telegram bot to ping any server with ICMP or TCP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

montypaws/PingBot

 
 

Repository files navigation

PingBot

A simple Telegram bot to ping a server over ICMP or TCP protocol.

Docker Image CI

Installation

Docker

First, clone the repo

git clone https://github.com/chitang233/PingBot
cd PingBot

After configuration, run it:

docker compose up -d

Local

First, you need to install these packages in your system:

  • Python 3.6+
  • Python pip

Then, clone the repo and install the requirements:

git clone https://github.com/chitang233/PingBot
cd PingBot
pip install -r requirements.txt

After configuration, run it:

python main.py

Configuration

Edit config.py

  • API_TOKEN - Your Telegram Bot token.(Get it from @BotFather)
  • PROXY_URL - Optional. Your proxy URL. Support HTTP and SOCKS5. e.g. http://host:port, socks5://host:port
  • SHOW_PUBLIC_IP - Show your machine's public IP address and country in /start command if set to True. Default is False.

Commands

help - Show help message
icmp - Ping a server over ICMP protocol
tcp - Ping a server over TCP protocol, port required

About

A Telegram bot to ping any server with ICMP or TCP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.7%
  • Dockerfile 6.3%
0