mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-16 08:48:32 +01:00
18 lines
339 B
JavaScript
18 lines
339 B
JavaScript
|
import Core from './core.js'
|
||
|
|
||
|
export default class beammpmaster extends Core {
|
||
|
constructor () {
|
||
|
super()
|
||
|
|
||
|
// Don't use the tcp ping probing
|
||
|
this.usedTcp = true
|
||
|
}
|
||
|
|
||
|
async run (state) {
|
||
|
state.raw.servers = await this.request({
|
||
|
url: 'https://backend.beammp.com/servers-info',
|
||
|
responseType: 'json'
|
||
|
})
|
||
|
}
|
||
|
}
|