File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ export const RETRY_COMMAND =
25
25
export const ROLE_ADDED = "Role added successfully" ;
26
26
27
27
export const NAME_CHANGED = "User nickname changed successfully" ;
28
+
29
+ export const VERIFICATION_STRING =
30
+ "Like to verify yourself? click the above link and authorize real dev squad to manage your discord data" ;
Original file line number Diff line number Diff line change 1
- export const RDS_BASE_API_URL = "https://api.realdevsquad.com" ;
2
- export const RDS_BASE_STAGING_API_URL = "https://staging-api.realdevsquad.com" ;
3
- export const RDS_BASE_DEVELOPMENT_API_URL = "YOUR_LOCAL_API_URL" ; // If needed, modify the URL to your local API server
1
+ export const RDS_BASE_API_URL = "https://66ea-103-77-42-188.ngrok-free.app" ;
2
+ export const RDS_BASE_STAGING_API_URL =
3
+ "https://66ea-103-77-42-188.ngrok-free.app" ;
4
+ export const RDS_BASE_DEVELOPMENT_API_URL =
5
+ "https://66ea-103-77-42-188.ngrok-free.app" ; // If needed, modify the URL to your local API server
4
6
5
7
export const DISCORD_BASE_URL = "https://discord.com/api/v10" ;
6
8
export const DISCORD_AVATAR_BASE_URL = "https://cdn.discordapp.com/avatars" ;
Original file line number Diff line number Diff line change 1
1
import config from "../../config/config" ;
2
- import { RETRY_COMMAND } from "../constants/responses" ;
2
+ import { RETRY_COMMAND , VERIFICATION_STRING } from "../constants/responses" ;
3
3
import { env } from "../typeDefinitions/default.types" ;
4
4
import { discordEphemeralResponse } from "../utils/discordEphemeralResponse" ;
5
5
import { generateUniqueToken } from "../utils/generateUniqueToken" ;
@@ -13,9 +13,6 @@ export async function verifyCommand(
13
13
env : env
14
14
) {
15
15
const token = await generateUniqueToken ( ) ;
16
- const verificationString =
17
- "Like to verify yourself? click the above link and authorize real dev squad to manage your discord data" ;
18
-
19
16
const response = await sendUserDiscordData (
20
17
token ,
21
18
userId ,
@@ -27,7 +24,7 @@ export async function verifyCommand(
27
24
if ( response ?. status === 201 || response ?. status === 200 ) {
28
25
const verificationSiteURL = config ( env ) . VERIFICATION_SITE_URL ;
29
26
const message =
30
- `${ verificationSiteURL } /discord?token=${ token } \n` + verificationString ;
27
+ `${ verificationSiteURL } /discord?token=${ token } \n` + VERIFICATION_STRING ;
31
28
return discordEphemeralResponse ( message ) ;
32
29
} else {
33
30
return discordEphemeralResponse ( RETRY_COMMAND ) ;
You can’t perform that action at this time.
0 commit comments