mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
feat: add BeamMP support (#447)
* feat: add beammp support * fix: cleanup server name of escape codes * chore: add a new line for better readability
This commit is contained in:
parent
68c8423c84
commit
6bfbc883be
6 changed files with 61 additions and 1 deletions
17
protocols/beammpmaster.js
Normal file
17
protocols/beammpmaster.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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'
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue