Lint update.

This commit is contained in:
zkldi
2022-03-21 13:24:24 +00:00
parent 41165356ac
commit 00f5cc3f8c
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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);
+2
View File
@@ -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,
},
})
);
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -68,7 +68,7 @@ export async function TachiServerV1Request<T>(
// Throw the error upwards for it to be caught be a higher handler.
throw err;
}
}
}
/**
* Performs a GET request against the Tachi server.
+1 -1
View File
@@ -8,4 +8,4 @@ export const VERSION_INFO = {
patch: PATCH,
};
export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`;
export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`;