Skip to content

Commit

Permalink
feat: add gamemode in the raw object
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Sep 25, 2024
1 parent 1eda5a7 commit 592283e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocols/soldat.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class soldat extends Core {
})

const string = data.toString()
console.log(string)

state.numplayers = extractValue(string, /Players:\s*(\d+)/, 0, Number)
state.map = extractValue(string, /Map:\s*(.+)/, '')
Expand All @@ -38,5 +39,6 @@ export default class soldat extends Core {
}

state.raw.response = string
state.raw.gamemode = extractValue(string, /Gamemode:\s*(.+)/, '')
}
}

0 comments on commit 592283e

Please sign in to comment.