Rearrange repo again

This commit is contained in:
zkldi
2022-03-21 17:37:47 +00:00
parent 7755d3923e
commit a80e91c49b
13 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { LoggerLayers } from "./data/data";
import { CreateLayeredLogger } from "./utils/logger";
import { IsRecord } from "./utils/predicates";
import { FormatPrError } from "./utils/prudence";
import { ServerConfig as ServerConfigType } from "./utils/return-types";
import { ServerConfig as ServerConfigType } from "./utils/returnTypes";
// Initialise .env.
config();
@@ -1,7 +1,7 @@
import { CommandInteraction, MessageEmbed } from "discord.js";
import { SLASH_COMMANDS } from "../commands/commands";
import { LoggerLayers } from "../data/data";
import { DiscordUserMapDocument } from "../database/documents";
import { SLASH_COMMANDS } from "../slashCommands/commands";
import { CreateLayeredLogger } from "../utils/logger";
const logger = CreateLayeredLogger(LoggerLayers.slashCommands);
+1 -1
View File
@@ -4,7 +4,7 @@ import { APITokenDocument, PublicUserDocument, WebhookEvents } from "tachi-commo
import { BotConfig } from "../config";
import { LoggerLayers } from "../data/data";
import db from "../database/mongo";
import { RequestTypes, TachiServerV1Get, TachiServerV1Request } from "../utils/fetch-tachi";
import { RequestTypes, TachiServerV1Get, TachiServerV1Request } from "../utils/fetchTachi";
import { CreateLayeredLogger } from "../utils/logger";
import { VERSION_PRETTY, VERSION_STR } from "../version";
import { ValidateWebhookRequest } from "./middleware";
@@ -1,7 +1,7 @@
import ping from "./ping/ping";
import quote from "./quote/quote";
import faq from "./faq/faq";
import sync from "./sync/sync";
import ping from "./commands/ping";
import quote from "./commands/quote";
import faq from "./commands/faq";
import sync from "./commands/sync";
import { SlashCommand } from "./types";
import { ServerConfig } from "../config";
@@ -1,8 +1,8 @@
import { SlashCommandBuilder } from "@discordjs/builders";
import { ServerConfig } from "../../config";
import { SlashCommand } from "../types";
import { TachiServerV1Get } from "../../utils/fetch-tachi";
import { ServerStatus } from "../../utils/return-types";
import { TachiServerV1Get } from "../../utils/fetchTachi";
import { ServerStatus } from "../../utils/returnTypes";
const command: SlashCommand = {
info: new SlashCommandBuilder()
@@ -3,7 +3,7 @@ import { Util } from "discord.js";
import { escapeRegExp } from "lodash";
import db from "../../database/mongo";
import { GetQuoteWithID } from "../../database/queries";
import { GetUserInfo } from "../../utils/api-requests";
import { GetUserInfo } from "../../utils/apiRequests";
import { CreateEmbed } from "../../utils/embeds";
import { FormatDate, IsAdmin, Pluralise, TruncateString } from "../../utils/misc";
import { SlashCommand } from "../types";
@@ -1,6 +1,6 @@
import { SlashCommandBuilder } from "@discordjs/builders";
import { BotConfig } from "../../config";
import { PerformScoreImport } from "../../utils/api-requests";
import { PerformScoreImport } from "../../utils/apiRequests";
import { CreateEmbed } from "../../utils/embeds";
import { Pluralise } from "../../utils/misc";
import { SlashCommand } from "../types";
+1 -1
View File
@@ -1,7 +1,7 @@
import { REST } from "@discordjs/rest";
import { Routes } from "discord-api-types/v9";
import { Client } from "discord.js";
import { SLASH_COMMANDS } from "../commands/commands";
import { SLASH_COMMANDS } from "./commands";
import { BotConfig } from "../config";
import { LoggerLayers } from "../data/data";
import { CreateLayeredLogger } from "../utils/logger";
@@ -1,9 +1,9 @@
import { CommandInteraction } from "discord.js";
import { ImportDocument, integer, PublicUserDocument } from "tachi-common";
import { RequestTypes, TachiServerV1Get, TachiServerV1Request } from "./fetch-tachi";
import { RequestTypes, TachiServerV1Get, TachiServerV1Request } from "./fetchTachi";
import logger from "./logger";
import { Sleep } from "./misc";
import { ImportDeferred, ImportPollStatus } from "./return-types";
import { ImportDeferred, ImportPollStatus } from "./returnTypes";
export async function GetUserInfo(userID: integer) {
const res = await TachiServerV1Get<PublicUserDocument>(`/users/${userID}`, null);