Inertia-Lighting / discord-bot

This repository contains the proprietary source-code for the Inertia Lighting Discord Bot and API Server. Any attempt to use the code contained in this repository will result in legal action.
https://inertia.lighting
10 stars 7 forks source link

Semi-Automatic verification when a member joins the discord #134

Closed MidSpike closed 3 years ago

MidSpike commented 3 years ago

The goal

Reduce the need for people to join our product hub in order to verify.

Methods

We could use a combination of roblox verification bot apis such as bloxlink.

Auto-Verification Process

  1. user joins our server
  2. our bot hits the apis
  3. check if any results are found
  4. dm the user with a drop-down menu asking them to select their account or "my account is not listed"
  5. if not listed, tell them to join our product hub to verify

Documented APIs

GET https://verify.eryn.io/api/user/<DISCORD_USER_ID>

{
  "status": "ok",
  "robloxId": "<ROBLOX_USER_ID>"
}
GET https://api.blox.link/v1/user/<DISCORD_USER_ID>

{
  "status": "ok",
  "primaryAccount": "<ROBLOX_USER_ID>"
}
GET https://users.roblox.com/v1/users/<ROBLOX_USER_ID>

{
  "displayName": "<ROBLOX_USER_USERNAME>"
}
MidSpike commented 3 years ago

@rossloika @dr4wn I would like your opinions on this

TotoTheEgg commented 3 years ago

Use displayName instead of name(username)

Will allow us to use the username a user would like, will also let other users not be confused about what to call the newly joined user

GET https://users.roblox.com/v1/users/<ROBLOX_USER_ID>

{
  "displayName": "<ROBLOX_USER_USERNAME>"
}
MidSpike commented 3 years ago

"displayName": ""

Suggestion merged with initial comment.

rossloika commented 3 years ago

After speaking with @MidSpike and reading through this, I do like the idea and I hope to see this to be continued forward into development.

WillFJS commented 3 years ago

Alright, great to hear on this, I will get to work on this by 09/16/2021

WillFJS commented 3 years ago

When displaying the display name in DMS, should we also include the user name Ex: Will_F (@Creator_Will)

TotoTheEgg commented 3 years ago

When displaying the display name in DMS, should we also include the user name Ex: Will_F (@Creator_Will)

I would say so, lower the chance for confusion

MidSpike commented 3 years ago

When displaying the display name in DMS, should we also include the user name Ex: Will_F (@Creator_Will)

I would say so, lower the chance for confusion

We need to remember to account for Discord's character limit in dropdown options