Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gorcon/telnet
TELNET Implementation for 7 Days to Die in Go.
https://github.com/gorcon/telnet
7-days-to-die 7daystodie 7dtd go golang telnet telnet-client
Last synced: 29 days ago
JSON representation
TELNET Implementation for 7 Days to Die in Go.
- Host: GitHub
- URL: https://github.com/gorcon/telnet
- Owner: gorcon
- License: mit
- Created: 2020-09-15T14:29:54.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T17:52:06.000Z (10 months ago)
- Last Synced: 2024-08-03T23:27:11.341Z (4 months ago)
- Topics: 7-days-to-die, 7daystodie, 7dtd, go, golang, telnet, telnet-client
- Language: Go
- Homepage:
- Size: 99.6 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - telnet
README
# Telnet
[![GitHub Build](https://github.com/gorcon/telnet/workflows/build/badge.svg)](https://github.com/gorcon/telnet/actions)
[![Coverage](https://gocover.io/_badge/github.com/gorcon/telnet?0 "coverage")](https://gocover.io/github.com/gorcon/telnet)
[![Go Report Card](https://goreportcard.com/badge/github.com/gorcon/telnet)](https://goreportcard.com/report/github.com/gorcon/telnet)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/gorcon/telnet)7 Days to Die remote access to game [Command Console](https://7daystodie.gamepedia.com/Command_Console). This is not full [TELNET](https://en.wikipedia.org/wiki/Telnet) protocol implementation.
## Supported Games
* [7 Days to Die](https://store.steampowered.com/app/251570)
Open pull request if you have successfully used a package with another game with telnet support and add it to the list.
## Install
```text
go get github.com/gorcon/telnet
```See [Changelog](CHANGELOG.md) for release details.
## Usage
### Execute single command
```go
package mainimport (
"log"
"fmt""github.com/gorcon/telnet"
)func main() {
conn, err := telnet.Dial("127.0.0.1:8081", "password")
if err != nil {
log.Fatal(err)
}
defer conn.Close()response, err := conn.Execute("help")
if err != nil {
log.Fatal(err)
}
fmt.Println(response)
}
```### Interactive CLI mode
```go
package mainimport (
"log"
"os""github.com/gorcon/telnet"
)func main() {
err := telnet.DialInteractive(os.Stdin, os.Stdout, "127.0.0.1:8081", "")
if err != nil {
log.Println(err)
}
}
```## Requirements
Go 1.15 or higher
## Contribute
Contributions are more than welcome!
If you think that you have found a bug, create an issue and publish the minimum amount of code triggering the bug so
it can be reproduced.If you want to fix the bug then you can create a pull request. If possible, write a test that will cover this bug.
## License
MIT License, see [LICENSE](LICENSE)