node-gamedig/protocols/beammpmaster.js
CosminPerRam 6bfbc883be
feat: add BeamMP support (#447)
* feat: add beammp support

* fix: cleanup server name of escape codes

* chore: add a new line for better readability
2023-12-30 22:41:56 +02:00

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'
})
}
}