forked from creations/badgeAPI
fix required bot token, fix equicord and vencord contrib badges, move equicord to svg
This commit is contained in:
parent
269b858e88
commit
2f9b38ace8
7 changed files with 72 additions and 49 deletions
|
@ -85,16 +85,36 @@ const discordBadgeDetails = {
|
|||
tooltip: "Uses AutoMod",
|
||||
icon: "/public/badges/discord/USES_AUTOMOD.svg",
|
||||
},
|
||||
|
||||
// Custom
|
||||
|
||||
VENCORD_CONTRIBUTOR: {
|
||||
tooltip: "Vencord Contributor",
|
||||
icon: "/public/badges/vencord.png",
|
||||
},
|
||||
EQUICORD_CONTRIBUTOR: {
|
||||
tooltip: "Equicord Contributor",
|
||||
icon: "/public/badges/equicord.svg",
|
||||
},
|
||||
|
||||
DISCORD_NITRO: {
|
||||
tooltip: "Discord Nitro",
|
||||
icon: "/public/badges/discord/NITRO.svg",
|
||||
},
|
||||
};
|
||||
|
||||
const badgeServices: BadgeService[] = [
|
||||
{
|
||||
service: "Vencord",
|
||||
url: "https://badges.vencord.dev/badges.json",
|
||||
pluginsUrl:
|
||||
"https://raw.githubusercontent.com/Vencord/builds/main/plugins.json",
|
||||
},
|
||||
{
|
||||
service: "Equicord", // Ekwekord ! WOOP
|
||||
url: "https://raw.githubusercontent.com/Equicord/Equibored/refs/heads/main/badges.json",
|
||||
pluginsUrl:
|
||||
"https://raw.githubusercontent.com/Equicord/Equibored/refs/heads/main/plugins.json",
|
||||
},
|
||||
{
|
||||
service: "Nekocord",
|
||||
|
@ -118,9 +138,6 @@ const badgeServices: BadgeService[] = [
|
|||
},
|
||||
];
|
||||
|
||||
const vencordEquicordContributorUrl =
|
||||
"https://raw.githubusercontent.com/Equicord/Equibored/refs/heads/main/plugins.json";
|
||||
|
||||
function getServiceDescription(service: string): string {
|
||||
const descriptions: Record<string, string> = {
|
||||
Vencord: "Custom badges from Vencord Discord client",
|
||||
|
@ -140,7 +157,6 @@ export {
|
|||
badgeServices,
|
||||
discordBadges,
|
||||
discordBadgeDetails,
|
||||
vencordEquicordContributorUrl,
|
||||
getServiceDescription,
|
||||
gitUrl,
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ const badgeFetchInterval: number = process.env.BADGE_FETCH_INTERVAL
|
|||
const botToken: string | undefined = process.env.DISCORD_TOKEN;
|
||||
|
||||
function verifyRequiredVariables(): void {
|
||||
const requiredVariables = ["HOST", "PORT", "DISCORD_TOKEN"];
|
||||
const requiredVariables = ["HOST", "PORT"];
|
||||
|
||||
let hasError = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue