0.1.2 • Published 10 months ago
7dtd-telnet-client v0.1.2
Overview
7dtd-telnet-client is a simple client for nodejs that enables you to send a command to your running Dedicated 7 Days to Die Game Server. (Currently Works with Alpha 21)
Quick Start Guide
Install with npm install --save 7dtd-telnet-client
from your project directory.
Basic usage
import ServerManager from '7dtd-telnet-client';
// Create a server manager
const manager = new ServerManager({
port: 8081,
host: "localhost"
});
// Send Say command to server when server manager is ready
manager.on('ready', ()=>{
manager.send('Say "Hello Zombies from Server!!!"');
})
Options
You can find telnet port number and password of your server by checking serverconfig.xml
file within your server's root directory. They can be found at <property name="TelnetPort"value="XXXX"/>
and <property name="TelnetPassword" value=""/>
const manager = new ServerManager({
port: 8081, // Port number of your server
host: 'localhost', // Host name of your server
password: '7daystodie1234', // Telnet password of your server
showServerOutput: false // Show server log together
})