Reformat using prettier
diff --git a/src/config/default.ts b/src/config/default.ts
index 18069fa..dfdf29a 100644
--- a/src/config/default.ts
+++ b/src/config/default.ts
@@ -91,39 +91,39 @@
timeout: false,
role: null,
text: null,
- link: null,
+ link: null
},
kick: {
text: null,
- link: null,
+ link: null
},
ban: {
text: null,
- link: null,
+ link: null
},
softban: {
text: null,
- link: null,
+ link: null
},
warn: {
text: null,
- link: null,
+ link: null
},
role: {
role: null,
text: null,
- link: null,
+ link: null
},
nick: {
text: null,
- link: null,
+ link: null
}
},
tracks: [],
roleMenu: {
enabled: false,
allowWebUI: false,
- options: [],
+ options: []
},
tags: {},
autoPublish: {
diff --git a/src/config/format.ts b/src/config/format.ts
index e32bef6..0560796 100644
--- a/src/config/format.ts
+++ b/src/config/format.ts
@@ -1,4 +1,3 @@
-
import fs from "fs";
import * as readLine from "node:readline/promises";
@@ -24,7 +23,7 @@
password: "",
database: "",
host: "",
- authSource: "",
+ authSource: ""
},
baseUrl: "Your website where buttons such as Verify and Role menu will link to, e.g. https://example.com/",
pastebinApiKey: "An API key for pastebin (optional)",
@@ -64,7 +63,7 @@
let json: typeof defaultDict;
let out = true;
try {
- json = await import("./main.js") as unknown as typeof defaultDict;
+ json = (await import("./main.js")) as unknown as typeof defaultDict;
} catch (e) {
console.log("\x1b[31m⚠ No main.ts found, creating one.");
console.log(" \x1b[2mYou can edit src/config/main.ts directly using template written to the file.\x1b[0m\n");
@@ -75,7 +74,9 @@
if (Object.keys(json).length) {
if (json["token"] === defaultDict["token"] || json["developmentToken"] === defaultDict["developmentToken"]) {
console.log("\x1b[31m⚠ No main.ts found, creating one.");
- console.log(" \x1b[2mYou can edit src/config/main.ts directly using template written to the file.\x1b[0m\n");
+ console.log(
+ " \x1b[2mYou can edit src/config/main.ts directly using template written to the file.\x1b[0m\n"
+ );
json = {};
}
}
@@ -142,7 +143,7 @@
password: json["password"] as string,
database: json["database"] as string,
host: json["host"] as string,
- authSource: json["authSource"] as string,
+ authSource: json["authSource"] as string
};
fs.writeFileSync("./src/config/main.ts", "export default " + JSON.stringify(json, null, 4) + ";");
diff --git a/src/config/main.d.ts b/src/config/main.d.ts
index 75eb9e0..99c460d 100644
--- a/src/config/main.d.ts
+++ b/src/config/main.d.ts
@@ -1,24 +1,24 @@
declare const config: {
- developmentToken: string,
- developmentGuildID: string,
- enableDevelopment: boolean,
- token: string,
- managementGuildID: string,
- owners: string[],
- commandsFolder: string,
- eventsFolder: string,
- messageContextFolder: string,
- userContextFolder: string,
- verifySecret: string,
+ developmentToken: string;
+ developmentGuildID: string;
+ enableDevelopment: boolean;
+ token: string;
+ managementGuildID: string;
+ owners: string[];
+ commandsFolder: string;
+ eventsFolder: string;
+ messageContextFolder: string;
+ userContextFolder: string;
+ verifySecret: string;
mongoOptions: {
- username: string,
- password: string,
- database: string,
- host: string,
- authSource: string
- },
- baseUrl: string,
- rapidApiKey: string
+ username: string;
+ password: string;
+ database: string;
+ host: string;
+ authSource: string;
+ };
+ baseUrl: string;
+ rapidApiKey: string;
};
-export default config;
\ No newline at end of file
+export default config;