An open API service indexing awesome lists of open source software.

https://github.com/woodgear/bot


https://github.com/woodgear/bot

automatic bot windows

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# what it is
the aim of bot is provid a way that control you windows manchine (like a ssh).
# how it work
bot has client mode and server mode.
under server mode,it receive command and envloe it
under client mode,it connect to bot server and you could send command via it.
the whole work behavior is just like the behavior between ssh server and ssh client
# how to use
## server mode
```
bot server PORT
```
## client mode
```
bot client URL
```
url is the ws://IP:PORT,ip is ip of the machine which bot run in server mode,
### cmd syntax
there is three cmd here
```
call xxxx
spawn xxxx
copy-file {"from":"xxx","to":"xxx"}
```
when server receiver cmd like call A, it will call create process `cmd /c A` wait the end of process and send all output back. similarly spawn do the same, but will not wait end of process.
the response from server is json str
```json
{
""
}
```

# how to install
```
cargo install --git https://github.com/woodgear/bot.git
```
# cli
bot 应当提供流畅的命令行终端输入体验
# script cli
bot 应该很容易的被嵌入到脚本中被执行
# script