diff --git a/src/commands/dev/dev.ts b/src/commands/dev/dev.ts index 4bdf55e..6f272e7 100644 --- a/src/commands/dev/dev.ts +++ b/src/commands/dev/dev.ts @@ -43,7 +43,7 @@ export default command(meta, async ({ interaction }) => { }); } } else { - const Users = await fetch(process.env.API_ENDPOINT_V2 + "/bot/dev/users", { + const Users = await fetch(process.env.API_ENDPOINT_NEXT + "/bot/dev/users", { method: "GET", headers: { "Content-Type": "application/json", diff --git a/src/commands/funny/respond.ts b/src/commands/funny/respond.ts index 202128a..7d0be46 100644 --- a/src/commands/funny/respond.ts +++ b/src/commands/funny/respond.ts @@ -10,7 +10,7 @@ const meta = new SlashCommandBuilder() export default command(meta, async ({ interaction, client }) => { const user = interaction.member?.user.username; - const data = await fetch(process.env.API_ENDPOINT_V2 + "/endpoint/response", { + const data = await fetch(process.env.API_ENDPOINT_NEXT + "/bot/command/quotes", { method: "GET", headers: { "Content-Type": "application/json", diff --git a/src/commands/team/link.ts b/src/commands/team/link.ts index 6bc6036..0e8a595 100644 --- a/src/commands/team/link.ts +++ b/src/commands/team/link.ts @@ -49,7 +49,7 @@ const meta = new SlashCommandBuilder() ); export default command(meta, async ({ interaction }) => { - const data = await fetch(process.env.API_ENDPOINT_V2 + "/bot/commands/user", { + const data = await fetch(process.env.API_ENDPOINT_NEXT + "/bot/commands/user", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/src/commands/team/pass.ts b/src/commands/team/pass.ts index 5ba9f2e..5b9f03d 100644 --- a/src/commands/team/pass.ts +++ b/src/commands/team/pass.ts @@ -51,7 +51,7 @@ export default command(meta, async ({ interaction }) => { } const data = await fetch( - process.env.API_ENDPOINT_V2 + "/bot/team/pass/create", + process.env.API_ENDPOINT_NEXT + "/bot/team/pass/create", { method: "POST", headers: { @@ -104,7 +104,7 @@ export default command(meta, async ({ interaction }) => { return; } - const key = await fetch(process.env.API_ENDPOINT_V2 + "/bot/team/pass/key", { + const key = await fetch(process.env.API_ENDPOINT_NEXT + "/bot/team/pass/key", { method: "POST", headers: { "Content-Type": "application/json", @@ -147,7 +147,7 @@ export default command(meta, async ({ interaction }) => { } const update = await fetch( - process.env.API_ENDPOINT_V2 + "/bot/team/pass/update", + process.env.API_ENDPOINT_NEXT + "/bot/team/pass/update", { method: "POST", headers: { diff --git a/src/commands/team/sync.ts b/src/commands/team/sync.ts index 3adb853..cdb538d 100644 --- a/src/commands/team/sync.ts +++ b/src/commands/team/sync.ts @@ -8,7 +8,7 @@ const meta = new SlashCommandBuilder() export default command(meta, async ({ interaction }) => { const data = await fetch( - process.env.API_ENDPOINT_V2 + "/bot/commands/core-versions/update", + process.env.API_ENDPOINT_NEXT + "/bot/commands/core-versions/update", { method: "GET", headers: { diff --git a/src/events/pub/trivia_handler.ts b/src/events/pub/trivia_handler.ts index 92ecd06..ef2ad17 100644 --- a/src/events/pub/trivia_handler.ts +++ b/src/events/pub/trivia_handler.ts @@ -13,7 +13,7 @@ export default event("interactionCreate", async ({}, interaction) => { ) { if (interaction.customId === "confirmTrivia") { const randomTrivia = await fetch( - process.env.API_ENDPOINT_V2 + "/bot/commands/trivia", + process.env.API_ENDPOINT_NEXT + "/bot/commands/trivia", { method: "GET", headers: { @@ -43,7 +43,7 @@ export default event("interactionCreate", async ({}, interaction) => { await m.reply({ content: "Correct!" }); const nextTrivia = await fetch( - process.env.API_ENDPOINT_V2 + "/bot/commands/trivia", + process.env.API_ENDPOINT_NEXT + "/bot/commands/trivia", { method: "GET", headers: {