Remove development token option (please only use TOKEN))
diff --git a/SELF_HOSTING.md b/SELF_HOSTING.md
index a9953d4..8b91fd9 100644
--- a/SELF_HOSTING.md
+++ b/SELF_HOSTING.md
@@ -29,7 +29,6 @@
```json
{
"token": "your-token-here",
- "developmentToken": "dev-token-here",
"managementGuildID": "your-management-guild-id-here",
"developmentGuildID": "your-development-guild-id-here",
"enableDevelopment": true,
diff --git a/src/config/format.ts b/src/config/format.ts
index 042d173..c385c86 100644
--- a/src/config/format.ts
+++ b/src/config/format.ts
@@ -2,7 +2,6 @@
import * as readLine from "node:readline/promises";
const defaultDict: Record<string, string | string[] | boolean | Record<string, string | number | undefined>> = {
- developmentToken: "Your development bot token (Used for testing in one server, rather than production)",
developmentGuildID: "Your development guild ID",
enableDevelopment: true,
token: "Your bot token",
@@ -78,7 +77,7 @@
}
if (Object.keys(json).length) {
- if (json["token"] === defaultDict["token"] || json["developmentToken"] === defaultDict["developmentToken"]) {
+ if (json["token"] === defaultDict["token"]) {
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"
diff --git a/src/config/main.ts b/src/config/main.ts
index ae34ff7..12653ac 100644
--- a/src/config/main.ts
+++ b/src/config/main.ts
@@ -1,5 +1,4 @@
interface config {
- developmentToken: string;
developmentGuildID: string;
enableDevelopment: boolean;
token: string;
@@ -29,7 +28,6 @@
export default {
"token": process.env["TOKEN"]!,
- "developmentToken": process.env["DEV_TOKEN"]!,
"managementGuildID": process.env["MANAGEMENT_GUILD_ID"]!,
"developmentGuildID": process.env["DEV_GUILD_ID"]!,
"enableDevelopment": process.env["ENABLE_DEV"] === "true",
@@ -55,4 +53,4 @@
},
"githubPAT": process.env["GITHUB_PAT"]!,
"suggestionChannel": process.env["SUGGESTION_CHANNEL"]!,
-} as config;
\ No newline at end of file
+} as config;
diff --git a/src/index.ts b/src/index.ts
index b3883a1..442b182 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -26,6 +26,6 @@
console.error(err);
});
-await client.login(config.enableDevelopment ? config.developmentToken : config.token);
+await client.login(config.token);
await recordPerformance();