Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Mar 1, 2024
1 parent e14dc33 commit 44705ab
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions source/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class client {

}) {

console.log('message', pKind, pTitle, pDescription)

return {

'member' : async () => {
Expand Down Expand Up @@ -180,6 +182,9 @@ class client {

// >

console.log('result', result); // remove


await this.message({

pKind : 'interaction',
Expand Down
6 changes: 6 additions & 0 deletions source/command/decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,22 @@ class decrypt extends encrypt {

}) {

console.log('decrypt', pTag, pKey, pUsers, pFilePath); // remove

const result = await this.core({

pKey : pKey,
pData : await this.database.getFile({pFile : pFilePath})

});

console.log('decrypt result', result); // remove

// if (original) <
// else (then shared) <
if (pTag == result.owner) {

console.log('decrypt original');
return {

content : '> ' + (result.content).replace(/ /g, '\n> '),
Expand All @@ -115,6 +120,7 @@ class decrypt extends encrypt {
}
else {

console.log('decrypt duplicate');
return await this.run({

isShared : true,
Expand Down
4 changes: 4 additions & 0 deletions source/command/encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class encrypt {
pShare = []

}) {

console.log('encrypt', pTag, pKey, pContent, pFilePath); // remove

// setup <
const key = Buffer.from(pKey);
Expand All @@ -81,6 +83,8 @@ class encrypt {

// >



await this.database.setFile({

pFile : pFilePath,
Expand Down

0 comments on commit 44705ab

Please sign in to comment.