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({