mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
chore: run eslint --fix
This commit is contained in:
parent
2c8fef316b
commit
a5187f70f9
10 changed files with 61 additions and 62 deletions
|
|
@ -10,7 +10,7 @@ export default class asa extends Epic {
|
|||
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
|
||||
}
|
||||
|
||||
async run(state) {
|
||||
async run (state) {
|
||||
await super.run(state)
|
||||
state.version = state.raw.attributes.BUILDID_s + '.' + state.raw.attributes.MINORBUILDID_s
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ export default class dayz extends valve {
|
|||
state.raw.dlcEnabled = true
|
||||
}
|
||||
if (tag.includes('privHive')) {
|
||||
state.raw.privateHive = true;
|
||||
state.raw.privateHive = true
|
||||
}
|
||||
if (tag.includes('external')) {
|
||||
state.raw.external = true;
|
||||
state.raw.external = true
|
||||
}
|
||||
if (tag.includes(':')) {
|
||||
state.raw.time = tag
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import samp from './samp.js'
|
||||
|
||||
export default class gtasao extends samp {
|
||||
constructor() {
|
||||
constructor () {
|
||||
super()
|
||||
this.isOmp = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import Core from './core.js'
|
||||
|
||||
export default class minetest extends Core {
|
||||
constructor() {
|
||||
constructor () {
|
||||
super()
|
||||
this.usedTcp = true
|
||||
}
|
||||
|
||||
async run(state) {
|
||||
async run (state) {
|
||||
const servers = await this.request({
|
||||
url: 'https://servers.minetest.net/list',
|
||||
responseType: 'json'
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export default class quake1 extends quake2 {
|
|||
this.isQuake1 = true
|
||||
}
|
||||
|
||||
async run(state) {
|
||||
async run (state) {
|
||||
await super.run(state)
|
||||
if ('*version' in state.raw) state.version = state.raw['*version']
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import Core from './core.js'
|
||||
|
||||
export default class ragemp extends Core {
|
||||
constructor() {
|
||||
constructor () {
|
||||
super()
|
||||
this.usedTcp = true
|
||||
}
|
||||
|
||||
async run(state) {
|
||||
async run (state) {
|
||||
const results = await this.request({
|
||||
url: 'https://cdn.rage.mp/master/v2/',
|
||||
responseType: 'json'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue