mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
feat: update squad support to eos (#731)
This commit is contained in:
parent
7823b2da12
commit
87f7c09705
5 changed files with 25 additions and 4 deletions
|
|
@ -49,6 +49,7 @@ import samp from './samp.js'
|
|||
import satisfactory from './satisfactory.js'
|
||||
import savage2 from './savage2.js'
|
||||
import soldat from './soldat.js'
|
||||
import squad from './squad.js'
|
||||
import starmade from './starmade.js'
|
||||
import starsiege from './starsiege.js'
|
||||
import teamspeak2 from './teamspeak2.js'
|
||||
|
|
@ -79,6 +80,6 @@ export {
|
|||
armagetron, ase, asa, assettocorsa, battlefield, brokeprotocol, brokeprotocolmaster, buildandshoot, cs2d, discord, doom3, eco, epic, factorio, farmingsimulator, ffow,
|
||||
fivem, gamespy1, gamespy2, gamespy3, geneshift, goldsrc, gtasao, hawakening, hawakeningmaster, hexen2, jc2mp, kspdmp, mafia2mp, mafia2online, minecraft,
|
||||
minecraftbedrock, minecraftvanilla, minetest, mumble, mumbleping, nadeo, openttd, palworld, quake1, quake2, quake3, renegadex, renegadexmaster, renown, rfactor, ragemp, samp,
|
||||
satisfactory, soldat, savage2, starmade, starsiege, teamspeak2, teamspeak3, terraria, toxikk, tribes1, tribes1master, unreal2, ut3, valve,
|
||||
satisfactory, soldat, savage2, squad, starmade, starsiege, teamspeak2, teamspeak3, terraria, toxikk, tribes1, tribes1master, unreal2, ut3, valve,
|
||||
vcmp, ventrilo, warsow, eldewrito, beammpmaster, beammp, dayz, theisleevrima, xonotic, altvmp, vintagestorymaster, vintagestory, sdtd, scpsl
|
||||
}
|
||||
|
|
|
|||
20
protocols/squad.js
Normal file
20
protocols/squad.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import Epic from './epic.js'
|
||||
|
||||
export default class squad extends Epic {
|
||||
constructor () {
|
||||
super()
|
||||
|
||||
// OAuth2 credentials extracted by intercepting Squad traffic.
|
||||
this.clientId = 'xyza7891J7d3GU8ZIwCoC5xdBsdoqVWA'
|
||||
this.clientSecret = '4SLVBqAm09q776SIlQRTD6moM/bnGAWhDSqOxJAIS0s'
|
||||
this.deploymentId = '5dee4062a90b42cd98fcad618b6636c2'
|
||||
this.authByExternalToken = true
|
||||
}
|
||||
|
||||
async run (state) {
|
||||
await super.run(state)
|
||||
state.name = state.raw.attributes.SERVERNAME_s
|
||||
state.password = state.raw.attributes.PASSWORD_b
|
||||
state.version = state.raw.attributes.GAMEVERSION_s
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue