Discord endpoint #21

Closed
opened 2023-09-10 14:52:58 +00:00 by silver · 6 comments
silver commented 2023-09-10 14:52:58 +00:00 (Migrated from gitlab.skynet.ie)

Make an endpoint for the discord bot.

Bot will ask if a email is in db, api responds with username

Make an endpoint for the discord bot. Bot will ask if a email is in db, api responds with username
silver commented 2023-09-10 14:52:58 +00:00 (Migrated from gitlab.skynet.ie)

assigned to @silver

assigned to @silver
silver commented 2023-09-10 14:54:28 +00:00 (Migrated from gitlab.skynet.ie)

marked this issue as related to compsoc1/skynet/discord-bot#2

marked this issue as related to compsoc1/skynet/discord-bot#2
silver commented 2023-09-10 16:05:00 +00:00 (Migrated from gitlab.skynet.ie)

Bot sends:

{
  "key": "key shared between teh two",
  "user": "discord username of the person submitting",
  "email": "submitted email"
}

3 things can happen as a result:

  • Email not found
  • Email found with no discord set
  • Email found with Discord set

If no email is found then the user does nto get a role.

If email is found with no discord then the username is set in the DB and returned positive

If email and discord are set and matches then user gets role.

If email and discord are sert but discord does not match its a clash, negative

Bot sends: ```json { "key": "key shared between teh two", "user": "discord username of the person submitting", "email": "submitted email" } ``` 3 things can happen as a result: * Email not found * Email found with no discord set * Email found with Discord set If no email is found then the user does nto get a role. If email is found with no discord then the username is set in the DB and returned positive If email and discord are set and matches then user gets role. If email and discord are sert but discord does not match its a clash, negative
silver commented 2023-09-16 13:56:26 +00:00 (Migrated from gitlab.skynet.ie)

mentioned in commit 35952a2030

mentioned in commit 35952a203077fe08ce80286d2de7f732f067aabe
silver commented 2023-09-16 15:28:39 +00:00 (Migrated from gitlab.skynet.ie)

mentioned in commit 347988e113

mentioned in commit 347988e113ac7eec92b8c4104c47f87e2b0325ed
silver commented 2023-10-06 13:37:25 +00:00 (Migrated from gitlab.skynet.ie)

Not going with this, adds too much complexity to everything

Not going with this, adds too much complexity to everything
silver (Migrated from gitlab.skynet.ie) closed this issue 2023-10-06 13:37:25 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Skynet/ldap_backend#21
No description provided.