Skip to content

Commit

Permalink
Merge branch 'fix-chat-eos-connect' of https://github.com/LeleDerGras…
Browse files Browse the repository at this point in the history
…shalmi/fnbr.js into LeleDerGrasshalmi-fix-chat-eos-connect
  • Loading branch information
tnfAngel committed Jul 25, 2024
2 parents 3c19216 + c78a0b3 commit ca391a7
Show file tree
Hide file tree
Showing 18 changed files with 780 additions and 63 deletions.
4 changes: 4 additions & 0 deletions docs/examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ client.on('friend:message', (message) => {
}
});

client.on('party:member:message', (message) => {
console.log(`Party Message from ${message.author.displayName}: ${message.content}`);
});

client.on('ready', () => {
console.log(`Logged in as ${client.user.self.displayName}`);
});
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export { default as PartyNotFoundError } from './src/exceptions/PartyNotFoundErr
export { default as PartyPermissionError } from './src/exceptions/PartyPermissionError';
export { default as SendMessageError } from './src/exceptions/SendMessageError';
export { default as StatsPrivacyError } from './src/exceptions/StatsPrivacyError';
export { default as StompConnectionError } from './src/exceptions/StompConnectionError';
export { default as UserNotFoundError } from './src/exceptions/UserNotFoundError';
export { default as XMPPConnectionError } from './src/exceptions/XMPPConnectionError';
export { default as XMPPConnectionTimeoutError } from './src/exceptions/XMPPConnectionTimeoutError';
Expand Down
101 changes: 90 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
"typescript": "^5.5.2"
},
"dependencies": {
"@discordjs/collection": "^2.1.0",
"@sapphire/async-queue": "^1.5.2",
"axios": "^1.7.2",
"stanza": "^12.20.0",
"tslib": "^2.6.3"
"@discordjs/collection": "^2.0.0",
"@sapphire/async-queue": "^1.5.0",
"@stomp/stompjs": "^7.0.0",
"axios": "^1.3.5",
"stanza": "^12.18.0",
"tslib": "^2.5.0",
"ws": "^8.18.0"
},
"optionalDependencies": {
"fsevents": "^2.3.3"
Expand Down
7 changes: 7 additions & 0 deletions resources/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ export default Object.freeze({
XMPP_SERVER: 'xmpp-service-prod.ol.epicgames.com',
EPIC_PROD_ENV: 'prod.ol.epicgames.com',

// EOS
EOS_STOMP: 'connect.epicgames.dev',
EOS_TOKEN: 'https://api.epicgames.dev/epic/oauth/v2/token',
EOS_TOKEN_INFO: 'https://api.epicgames.dev/epic/oauth/v2/tokenInfo',
EOS_TOKEN_REVOKE: 'https://api.epicgames.dev/epic/oauth/v2/revoke',
EOS_CHAT: 'https://api.epicgames.dev/epic/chat',

// BATTLE ROYALE
BR_STATS_V2: 'https://statsproxy-public-service-live.ol.epicgames.com/statsproxy/api/statsv2',
BR_SERVER_STATUS: 'https://lightswitch-public-service-prod06.ol.epicgames.com/lightswitch/api/service/bulk/status?serviceId=Fortnite',
Expand Down
2 changes: 2 additions & 0 deletions resources/enums.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
export enum AuthSessionType {
Fortnite = 'fortnite',
FortniteClientCredentials = 'fortniteClientCredentials',
EOS = 'eos',
Launcher = 'launcher',
}

export enum AuthSessionStoreKey {
Fortnite = 'fortnite',
FortniteClientCredentials = 'fortniteClientCredentials',
FortniteEOS = 'fortniteEOS',
Launcher = 'launcher',
}
Loading

0 comments on commit ca391a7

Please sign in to comment.