【文件属性】:
文件名称:serverstatus:从Tibia Server端口为renatoribotinfo的js传递IP和PORT来捕获信息,例如在线玩家,所有者,motd,地图重量,怪物,npc等信息。
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-27 14:48:25
nodejs mmorpg tibia otserv tibiajs
从Tibia Server捕获IP和PORT来捕获在线玩家,所有者,motd,地图权重,怪物,npc等信息,例如IP
安装
$ npm install --save tibia-status
用法
var ServerStatus = require ( 'tibia-status' ) ;
var otserv = new ServerStatus ( 'underwar.org' ) ;
otserv
. then ( function ( data ) {
console . log ( data ) ;
} )
. fail ( function ( err ) {
console . error ( err ) ;
} ) ;
/*
{ server:
{ uptime: 82139,
ip: '192.99.19.2
【文件预览】:
serverstatus-master
----.jshintrc(209B)
----Gruntfile.js(999B)
----src()
--------map.js(201B)
--------server.js(408B)
--------players.js(177B)
--------rates.js(273B)
--------owner.js(115B)
--------status.js(916B)
--------index.js(1KB)
----.travis.yml(308B)
----test()
--------test.js(1KB)
----README.md(3KB)
----.gitignore(38B)
----index.js(50B)
----package.json(1KB)