feat: add Epic Games profile support

This commit is contained in:
Cooper 2024-07-23 15:42:55 -05:00 committed by GitHub
parent 7c27cec573
commit d435e0a28e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -11,11 +11,11 @@ Allows you to open more connections in browser!
### Supported Platforms
* Xbox
* Roblox
* Epic Games
### Planned Platforms
* None as of currently
### Platforms that will never be supported
* Riot Games/League of Legends (Nothing made by Riot Games to view profiles online)
* Battle.net (Nothing made by Blizzard to view profiles online)
* Bungie.net (Nothing made by Bungie.net to view profiles online)
* Epic Games (Nothing made by Epic Games to view profiles online)
* PSN/PlayStation Network (Sony built a service called My PlayStation, but removed it for unknown reasons in 2021)

View file

@ -10,7 +10,7 @@ import definePlugin from "@utils/types";
/**
* platforms that dont open natively
* ! riot and leage (can't view profiles)
* ! epic (can't view profiles)
* * epic (Added)
* ! psn (can't view profiles after sony removed My PlayStation)
* * roblox (Added)
* * xbox (Added)
@ -23,16 +23,19 @@ import definePlugin from "@utils/types";
enum contypes {
Roblox = "Roblox",
Xbox = "Xbox",
Epic = "Epic"
}
const uris = { // name (what shows up on connection on ui), id (an identifier thing)
[contypes.Roblox]: "https://www.roblox.com/users/${id}/profile",
[contypes.Xbox]: "https://www.xbox.com/play/user/${name}",
[contypes.Epic]: "https://store.epicgames.com/en-US/u/${id}",
};
const serviceNames = { // What the name part in the discord code calls it.
[contypes.Roblox]: "Roblox",
[contypes.Xbox]: "Xbox",
[contypes.Epic]: "Epic Games",
};
export default definePlugin({