Skip to content

Commit

Permalink
Merge pull request #2 from WolvenKit/v2
Browse files Browse the repository at this point in the history
fix api url and quote endpoint
  • Loading branch information
Moonded authored Sep 24, 2024
2 parents 43313c8 + 0aad209 commit 4f5fac0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/commands/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/funny/respond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/commands/team/pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions src/events/pub/trivia_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 4f5fac0

Please sign in to comment.