Skip to content

ViterAlex/MikroTgBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MikroTgBot

This project allows to manage computers in small office via Telegram-bot. You can:

  1. Check status of PC or router
  2. Check whether device is online
  3. Turn on PC's via WOL packet
  4. Turn off PC Project contains two semi-independent parts: a part hosted on the router, and a part running on PC

How To Install

Router

  • copy files script.rsc, sched.rsc to the router and run them. These files will create all needed scripts and scheduled jobs.
  • change script tg_config on the router with real values:
:local config {
  "botAPI"="0123456789:dfdfadf";
  "defaultChatID"="chatid";
  "trusted"="1122445522";
  "storage"="";
  "timeout"=60;
  "ignore"="ignoreCommand";
  "executeNotCommit"="health,add,remove,online";
}
:put "<tg_config>: Config------------------------------------------------"
:foreach k,v in=$config do={ :put "\t\"$k\" = \"$v\"" }
:put "\n"
return $config
  • reboot router

Computer

  • copy content of Powershell folder to any place on the PC
  • run script install_run_as_admin.bat with elevated rights
  • script will copy nessesary files to %programdata%\Dreamcatcher folder and will create a service DreamcatcherService
  • create file config.json in the folder %programdata%\Dreamcatcher:
{
  "botapi": "0123456789:afdfadfadfad",
  "trusted": "1122334455",
  "allowed": "shutdown,health,online",
  "notCommit":" health,online"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published