skinwalker11 / speeedy

Telegram SpeedTest Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

speeedy Go Report Card Codacy Badge GolangCI Go 1.13+ platforms MIT license

Speeedy is a SpeedTest Telegram bot. Speedtest only runs on the machine it is installed on. Speedtest can also be run routinely with Job.

I developed this bot because I was curious about the performance of the my ISP.

Prerequisites

  • Go 1.13+
  • Vgo (Go Module)
  • Telegram
  • SpeedTest Cli

Installing speeedy and Run

  • Create a telegram bot with BotFather and get token of created bot.
  • Download SpeedTest CLI and moves to the project directory.
  • Set required environment variables and path
$ cd $GOPATH/src
$ mkdir github.com
$ cd github.com
$ git clone git@github.com:faoztas/speeedy.git
$ cd speeedy                # config.toml template is filled. Moves to the project directory.
$ export GO111MODULE=on     # manually active module mode
$ go mod init               # manually e.g., $ go mod init github.com/my/repo
$ go mod tidy               # This command allows you to fetch all the dependencies that you need for testing in your module.
$ go build -o speeedy       # Or $ go run .
$ ./speeedy

How to use

If you want to Speed Test please write /test.

/test             # default basic test
/test details     # speed test with extras argument
/test image       # send image with speed test
/test server 1234 # speed test with specific server

If you want to learn Server List please write /servers.

/servers          # nearly 10 speedtest server

If you want to learn Past test results please write /last.

/last             # last result
/last 5           # last 5 results
/best             # best result
/worst            # worst result

About

Telegram SpeedTest Bot

License:MIT License


Languages

Language:Go 100.0%