Skip to content

Commit 4af3672

Browse files
raising different PR for /verify string
1 parent a1903ff commit 4af3672

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/constants/responses.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ export const ROLE_ADDED = "Role added successfully";
2727
export const NAME_CHANGED = "User nickname changed successfully";
2828

2929
export const ROLE_REMOVED = "Role Removed successfully";
30+
export const VERIFICATION_STRING =
31+
"Like to verify yourself? click the above link and authorize real dev squad to manage your discord data";

src/controllers/verifyCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import config from "../../config/config";
2-
import { RETRY_COMMAND } from "../constants/responses";
2+
import { RETRY_COMMAND, VERIFICATION_STRING } from "../constants/responses";
33
import { env } from "../typeDefinitions/default.types";
44
import { discordEphemeralResponse } from "../utils/discordEphemeralResponse";
55
import { generateUniqueToken } from "../utils/generateUniqueToken";
@@ -24,7 +24,7 @@ export async function verifyCommand(
2424
);
2525
if (response?.status === 201 || response?.status === 200) {
2626
const verificationSiteURL = config(env).VERIFICATION_SITE_URL;
27-
const message = `${verificationSiteURL}/discord?token=${token}`;
27+
const message = `${verificationSiteURL}/discord?token=${token}\n${VERIFICATION_STRING}`;;
2828
return discordEphemeralResponse(message);
2929
} else {
3030
return discordEphemeralResponse(RETRY_COMMAND);

0 commit comments

Comments
 (0)