Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit d4f7bfb

Browse files
author
andrewstech
committed
OWL
1 parent dae3285 commit d4f7bfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/CreateFile.js

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { Octokit } = require("@octokit/rest");
22
const user = require("../models/user");
33
const { EncryptPayload, DecryptPayload } = require("./owl");
44
const { EmbedBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder } = require("discord.js");
5+
const DmUser = require("./DmUser");
56
module.exports = async function (type, Ddata, domain, interaction) {
67
try {
78
const data = await user.findOne({ _id: interaction.user.id });
@@ -12,7 +13,12 @@ module.exports = async function (type, Ddata, domain, interaction) {
1213
let id = interaction.user.id;
1314

1415
let OWL = await EncryptPayload({ email: email, username: username, user_id: "" });
16+
const embed = new EmbedBuilder()
17+
.setTitle("OWL")
18+
.setDescription("\n**What is OWL?** \n OWL is a key that is used to encrypt and decrypt your data. \n\n**What is it used for?** \n OWL is used to store your contact info securely incase we need to email you. \n\n**YOUR OWL:** \n\n" + OWL)
19+
.setColor("#0096ff");
1520

21+
await DmUser(interaction.client, interaction.user, embed);
1622
const octokit = new Octokit({
1723
auth: token,
1824
});

0 commit comments

Comments
 (0)