diff --git a/5a0b-bot.njsproj b/5a0b-bot.njsproj index 1e08d43..7f750d8 100644 --- a/5a0b-bot.njsproj +++ b/5a0b-bot.njsproj @@ -31,7 +31,6 @@ - diff --git a/src/app.ts b/src/app.ts index 5009f34..12326bc 100644 --- a/src/app.ts +++ b/src/app.ts @@ -2,9 +2,9 @@ import { MyClient } from "./types/Client"; -const token = process.env.DISCORD_TOKEN; +const token = "NzIyMjE0MTA3MjM5MDIyNjcy.Xuf0TQ.UwFKXzc8cj_oVz_DQZn17whgoGo"; -const client = new MyClient("./dist/commands", "./dist/events"); +const client = new MyClient("./commands", "./events"); client.on("ready", () => { if (!client.user) diff --git a/src/types/Client.ts b/src/types/Client.ts index ced6c3b..9097045 100644 --- a/src/types/Client.ts +++ b/src/types/Client.ts @@ -21,7 +21,7 @@ export class MyClient extends Client { const cmdFiles = readdirSync(commandsPath).filter(file => file.endsWith(".js")); for (const file of cmdFiles) { - import(`${commandsPath}/${file}`).then((command) => { + import(`.${commandsPath}/${file}`).then((command) => { const name = command.data.name; this.restCommands.push(command.data); this.commands.set(name, command);