From 00f5cc3f8cb3b7d2bf242f7b84b2179f4d528db7 Mon Sep 17 00:00:00 2001 From: zkldi Date: Mon, 21 Mar 2022 13:24:24 +0000 Subject: [PATCH] Lint update. --- bot/src/main.ts | 2 +- bot/src/server/server.ts | 2 ++ bot/src/utils/embeds.ts | 2 +- bot/src/utils/fetch-tachi.ts | 2 +- bot/src/version.ts | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bot/src/main.ts b/bot/src/main.ts index a4c6bdf68..36d642a0e 100644 --- a/bot/src/main.ts +++ b/bot/src/main.ts @@ -66,7 +66,7 @@ We've sent you a DM with instructions on how to link your account.` (async () => { try { logger.info(`Booting Tachi Bot v${VERSION_STR}.`); - + // Login to discord. await client.login(BotConfig.DISCORD.TOKEN); diff --git a/bot/src/server/server.ts b/bot/src/server/server.ts index ae00e1a93..a2a47f1f4 100644 --- a/bot/src/server/server.ts +++ b/bot/src/server/server.ts @@ -6,6 +6,7 @@ import { LoggerLayers } from "../data/data"; import db from "../database/mongo"; import { RequestTypes, TachiServerV1Get, TachiServerV1Request } from "../utils/fetch-tachi"; import { CreateLayeredLogger } from "../utils/logger"; +import { VERSION_STR } from "../version"; import { ValidateWebhookRequest } from "./middleware"; export const app: Express = express(); @@ -32,6 +33,7 @@ app.get("/", (req, res) => description: "Bot is online!", body: { time: Date.now(), + version: VERSION_STR, }, }) ); diff --git a/bot/src/utils/embeds.ts b/bot/src/utils/embeds.ts index 95a4fb675..c76d0b25c 100644 --- a/bot/src/utils/embeds.ts +++ b/bot/src/utils/embeds.ts @@ -1,5 +1,5 @@ import { MessageEmbed } from "discord.js"; -import { BotConfig, ServerConfig } from "../config"; +import { ServerConfig } from "../config"; export function CreateEmbed() { return new MessageEmbed().setColor(ServerConfig.type === "ktchi" ? "#e61c6e" : "#527acc"); diff --git a/bot/src/utils/fetch-tachi.ts b/bot/src/utils/fetch-tachi.ts index 17a12289b..2ef15d610 100644 --- a/bot/src/utils/fetch-tachi.ts +++ b/bot/src/utils/fetch-tachi.ts @@ -68,7 +68,7 @@ export async function TachiServerV1Request( // Throw the error upwards for it to be caught be a higher handler. throw err; } -} +} /** * Performs a GET request against the Tachi server. diff --git a/bot/src/version.ts b/bot/src/version.ts index c57e5538d..18159d353 100644 --- a/bot/src/version.ts +++ b/bot/src/version.ts @@ -8,4 +8,4 @@ export const VERSION_INFO = { patch: PATCH, }; -export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`; \ No newline at end of file +export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`;