From 2a8af5667ad55b66b5f5fcd6d5cc7e427f14e233 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Fri, 27 Jun 2025 12:09:35 +0100 Subject: [PATCH] i forgot to change the url --- index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.ts b/index.ts index be1fa04..1dbe6fb 100644 --- a/index.ts +++ b/index.ts @@ -16,8 +16,6 @@ const eligibilityCmd = async (ctx: any) => { let userId = ctx.context.userId; let matchedBy = "no input" - const iUser = await ctx.client.users.info({ user: ctx.context.userId! }); - if ((match = text.match(/\<\@(.+)\|(.+)>/))) { userId = match[1]; matchedBy = "user mention" @@ -25,7 +23,7 @@ const eligibilityCmd = async (ctx: any) => { matchedBy = "invalid input" - const res = await fetch("https://verify.hackclub.dev/api/status", { + const res = await fetch("https://identity.hackclub.com/api/external/check?slack_id" + userId, { method: "POST", headers: { 'content-type': 'application/json' }, body: JSON.stringify({