diff --git a/src/structures/Bot.ts b/src/structures/Bot.ts index dfa914b..06951ea 100644 --- a/src/structures/Bot.ts +++ b/src/structures/Bot.ts @@ -121,6 +121,9 @@ export class Bot extends EventEmitter { */ public async start(port?: number, register?: boolean): Promise { try { + if (applicationState.running) { + throw new Error("This bot is already running"); + } console.log(`\nBot name: ${this.name}`); console.log(`Prefix: ${this.commands.prefix || "/ (only slash commands)"} \n`); if (this.token === "") {