i forgot to change the url
This commit is contained in:
parent
702e3e966e
commit
2a8af5667a
1 changed files with 1 additions and 3 deletions
4
index.ts
4
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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue