Skip to content

Commit

Permalink
remove images entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jul 22, 2023
1 parent 5bf98ce commit c38ca86
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion json/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"images": "https://database.faithfulpack.net/images/",
"teams": [
{
"name": "faithful",
Expand Down
3 changes: 2 additions & 1 deletion src/commands/bot/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Collection, Guild, version as djsVersion } from "discord.js";
import { Client, MessageEmbed, CommandInteraction, Message } from "@client";
import os from "os";
import linuxOs from "linux-os-info";
import settings from "@json/dynamic/settings.json";

export const command: SlashCommand = {
data: new SlashCommandBuilder()
Expand Down Expand Up @@ -63,7 +64,7 @@ export const command: SlashCommand = {
)
.setFooter({
text: await interaction.getEphemeralString({ string: "Command.Stats.Footer" }),
iconURL: `${client.config.images}bot/heart.png`,
iconURL: settings.images.heart,
});
interaction
.reply({ embeds: [embed], fetchReply: true })
Expand Down
1 change: 0 additions & 1 deletion src/helpers/interfaces/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export interface Config {
images: string;
teams: Array<Team>;
discords: Array<Discord>;
}
Expand Down
7 changes: 3 additions & 4 deletions src/helpers/sorter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Texture } from "@helpers/interfaces/firestorm";
import { EmbedFieldData } from "discord.js";
import ConfigJson from "@json/config.json";

/**
* Sort Minecraft Version Numbers
Expand Down Expand Up @@ -71,7 +70,7 @@ export const addPathsToEmbed = (texture: Texture): EmbedFieldData[] => {
export const formatName = (pack: string, size: string = "512"): string[] => {
// TODO: migrate from old config (ideally move to API if possible)
let strPack: string;
let strIconURL = ConfigJson.images + `branding/logos/transparent/${size}/`;
let strIconURL = `https://database.faithfulpack.net/images/branding/logos/transparent/${size}/`;
switch (pack) {
case "faithful_32x":
strPack = "Faithful 32x";
Expand All @@ -95,11 +94,11 @@ export const formatName = (pack: string, size: string = "512"): string[] => {
break;
case "progart":
strPack = "Default Programmer Art";
strIconURL = ConfigJson.images + "bot/progart.png?w=64"; // have to redefine since the directory is different
strIconURL = `https://database.faithfulpack.net/images/bot/progart.png?w=64`; // have to redefine since the directory is different
break;
default:
strPack = "Default Jappa";
strIconURL = ConfigJson.images + "bot/default.png?w=64";
strIconURL = `https://database.faithfulpack.net/images/bot/default.png?w=64`;
break;
}
return [strPack, strIconURL];
Expand Down

0 comments on commit c38ca86

Please sign in to comment.