Skip to content

TiunovNN/go-tg-wol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-tg-wol

Telegram Bot for wake on lan

Compile

go build cmd/bot.go

Run

The file config.json must be created near executable file.

Config.json example

{
    "token": "CHANGEME",
    "users": [
        {
            "name": "Patrick",
            "phone": "+799999999",
            "mac_address": "01:02:03:04:05:07"
        }
    ],
    "log_file": "bot.log"
}

Then just run ./bot or .\bot.exe depends on your OS.