mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
Lint update.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -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,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");
|
||||
|
||||
@@ -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
@@ -8,4 +8,4 @@ export const VERSION_INFO = {
|
||||
patch: PATCH,
|
||||
};
|
||||
|
||||
export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`;
|
||||
export const VERSION_STR = `${MAJOR}.${MINOR}.${PATCH}`;
|
||||
|
||||
Reference in New Issue
Block a user