Git Product home page Git Product logo

pingbot's Introduction

PingBot

Important

Check KimmyXYC/PingBot instead.

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

Docker Image CI

Installation

Docker

docker run -d \
  -e API_TOKEN= \
  -e PROXY_URL= \
  -e SHOW_PUBLIC_IP=1 \
  -e ALICLOUD_APPCODE= \
  --name pingbot \
  chitang233/pingbot

To learn about the environment variables, see Configuration.

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
pip3 install -r requirements.txt
cp .env.example .env

After configuration, run it:

python3 main.py

Configuration

Edit .env

  • 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
  • ALICLOUD_APPCODE - Optional. Your AlibabaCloud AppCode.
  • SHOW_PUBLIC_IP - Show your machine's public IP address and country in /start command if set to 1.

Commands

help - Show help message
icmp - Ping a server over ICMP protocol
tcp - Ping a server over TCP protocol, port required
trace - Show the route to a server
dns - Resolve a domain name
whois - Get whois information of a domain
ip - Get IP address of a domain
ip_alicloud - Get IP information using AlibabaCloud API

pingbot's People

Contributors

chitang233 avatar chiyuki0325 avatar fossabot avatar zyglqexplorer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.