mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
feat: Renown add support (#684)
* add renown support * add changelog entry
This commit is contained in:
parent
e6b959a4d7
commit
099f7107cf
6 changed files with 32 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ import quake2 from './quake2.js'
|
|||
import quake3 from './quake3.js'
|
||||
import renegadex from './renegadex.js'
|
||||
import renegadexmaster from './renegadexmaster.js'
|
||||
import renown from './renown.js'
|
||||
import rfactor from './rfactor.js'
|
||||
import samp from './samp.js'
|
||||
import satisfactory from './satisfactory.js'
|
||||
|
|
@ -75,7 +76,7 @@ import vintagestory from './vintagestory.js'
|
|||
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, rfactor, ragemp, samp,
|
||||
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,
|
||||
vcmp, ventrilo, warsow, eldewrito, beammpmaster, beammp, dayz, theisleevrima, xonotic, altvmp, vintagestorymaster, vintagestory
|
||||
}
|
||||
|
|
|
|||
20
protocols/renown.js
Normal file
20
protocols/renown.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import Epic from './epic.js'
|
||||
|
||||
export default class renown extends Epic {
|
||||
constructor () {
|
||||
super()
|
||||
|
||||
// OAuth2 credentials provided by the game developer.
|
||||
this.clientId = 'xyza7891XjE03sj3B404z0iQfQ4efjUj'
|
||||
this.clientSecret = '2YY7STKJ5wJuFIyR8TaXaBPfhHZiAY13YuNPSIn+0WY'
|
||||
this.deploymentId = '472a8286c61c408ca5ca1ec0401f07b7'
|
||||
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.SERVERVERSION_s
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue