Skip to content

Commit

Permalink
rename interfaces/firestorm to interfaces/database
Browse files Browse the repository at this point in the history
the firestorm-ness of it isn't really relevant?
  • Loading branch information
3vorp committed Jan 22, 2024
1 parent 6367dc7 commit 4022c75
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/commands/faithful/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Message, EmbedBuilder, ChatInputCommandInteraction } from "@client";
import { SlashCommandBuilder, AttachmentBuilder } from "discord.js";
import axios from "axios";
import formatPack from "@utility/formatPack";
import { Contribution, Texture } from "@interfaces/firestorm";
import { Contribution, Texture } from "@interfaces/database";
import { colors } from "@utility/colors";

export const command: SlashCommand = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/faithful/missing.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SlashCommand, SyncSlashCommandBuilder } from "@interfaces/commands";
import { Pack } from "@interfaces/firestorm";
import { Pack } from "@interfaces/database";
import { Client, ChatInputCommandInteraction, EmbedBuilder } from "@client";
import { SlashCommandBuilder, Message, AttachmentBuilder } from "discord.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/faithful/texture.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SlashCommand } from "@interfaces/commands";
import { Pack } from "@interfaces/firestorm";
import { Pack } from "@interfaces/database";
import { SlashCommandBuilder } from "discord.js";
import { ChatInputCommandInteraction, Message, Client } from "@client";
import { getTexture } from "@functions/getTexture";
Expand Down
2 changes: 1 addition & 1 deletion src/events/messageCreate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Event } from "@interfaces/events";
import { Client, Message, EmbedBuilder } from "@client";
import { Submission } from "@interfaces/firestorm";
import { Submission } from "@interfaces/database";
import { colors } from "@utility/colors";
import axios from "axios";
import { randint } from "@utility/methods";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/choiceEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SelectMenuComponentOptionData,
StringSelectMenuBuilder,
} from "discord.js";
import { Texture } from "@interfaces/firestorm";
import { Texture } from "@interfaces/database";
import minecraftSorter from "@utility/minecraftSorter";
import axios from "axios";

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/cycleComparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import GIFEncoder from "@images/GIFEncoder";
import { Client, EmbedBuilder } from "@client";
import { addPathsToEmbed } from "@functions/getTexture";
import axios from "axios";
import { Texture } from "@interfaces/firestorm";
import { Texture } from "@interfaces/database";

/**
* Turn array of canvas images into a gif
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/getTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Contributor,
GalleryTexture,
MinecraftEdition,
} from "@interfaces/firestorm";
} from "@interfaces/database";
import { animateToAttachment } from "@images/animate";
import minecraftSorter from "@utility/minecraftSorter";
import formatPack from "@utility/formatPack";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { join, normalize } from "path";

import blacklistedTextures from "@json/blacklisted_textures.json";
import axios from "axios";
import { MinecraftEdition, Pack, PackGitHub } from "@interfaces/firestorm";
import { MinecraftEdition, Pack, PackGitHub } from "@interfaces/database";

// starting from process.cwd()
export const BASE_REPOS_PATH = "repos";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/parseTextureName.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";
import { ChatInputCommandInteraction, EmbedBuilder } from "@client";
import { colors } from "@utility/colors";
import { Texture } from "@interfaces/firestorm";
import { Texture } from "@interfaces/database";

/**
* Validate and parse a texture name into a series of texture objects
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/textureComparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { magnify, magnifyToAttachment } from "@images/magnify";
import { Image, loadImage, createCanvas, Canvas } from "@napi-rs/canvas";
import { Client, EmbedBuilder } from "@client";
import { addPathsToEmbed } from "@functions/getTexture";
import { GalleryTexture } from "@interfaces/firestorm";
import { GalleryTexture } from "@interfaces/database";
import axios from "axios";
import { ActionRowBuilder, AttachmentBuilder, ButtonBuilder } from "discord.js";
import { template } from "@utility/buttons";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type MinecraftEdition = "java" | "bedrock";
import { MinecraftEdition } from "./textures";

export interface PackGitHub {
repo: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MCMETA } from "@helpers/images/animate";
import { MinecraftEdition } from "./packs";

export type MinecraftEdition = "java" | "bedrock";

export interface Path {
id: string;
Expand Down

0 comments on commit 4022c75

Please sign in to comment.