Skip to content

Commit

Permalink
file building
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Jan 1, 2024
1 parent 0548b3a commit bcf901b
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 16 deletions.
16 changes: 16 additions & 0 deletions hook/pre-commit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// import <
const token = require('../index.js');

// >


// if (token exists) <
// else (then success) <
if (token) {

console.log('Token exists.');
process.exit(1);

} else {process.exit(0);}

// >
39 changes: 39 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// < Project PasCam by Alex Arbuckle > //


// import <
const client = require('./source/client.js');

// >


// variables <
const guildId = '970204828858990593';
const channelId = '1129843141101498378';
const applicationId = '976408750070054943';
const token = 'OTc2NDA4NzUwMDcwMDU0OTQz.Gc750P.TBr6p6LFD9mfhqOWhFzhq3BzkRTaTTCoITqAA0';

// >


(async () => {

new client(

pToken = token,
pGuildId = guildId,
pChannelId = channelId,
pApplicationId = applicationId

).run();

})();


// export <
module.exports = token;

// >


// < In loving memory of our beloved bunny, Tribble. > //
70 changes: 55 additions & 15 deletions source/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,37 @@ class client {

constructor(

token,
pToken,
pGuildId,
pChannelId,
pApplicationId,

guildId = '970204828858990593',
channelId = '1129843141101498378',
applicationId = '976408750070054943'
maxMembers = 15

) {

// variables <
this.token = token;
this.guildId = guildId;
this.channelId = channelId;
this.applicationId = applicationId;
this.token = pToken;
this.guildId = pGuildId;
this.channelId = pChannelId;
this.maxMembers = maxMembers;
this.applicationId = pApplicationId;

// >


// commands <
this.commands = {

'show' : new show(),
'share' : new share(),
'remove' : new remove(),
'encrypt' : new encrypt(),
'decrypt' : new decrypt(),
'remove' : new remove(),
'share' : new share(),
'show' : new show()

};

// >


// objects <
this.client = new Client({

Expand All @@ -64,30 +64,70 @@ class client {

]

})
});

// >

}


database() {



}


message() {



}


listen() {

// event (new input) <
// event (new member) <
this.client.on('interactionCreate', async (interaction) => {



});
this.client.on('guildMemberAdd', async (member) => {



})

// >

}


run() {

this.client.login(this.token);
this.client.rest.put(

Routes.applicationGuildCommands(

this.applicationId,
this.guildId

),
{body : Object.values(this.commands).map((i) => {i.context();})}

);

this.listen();

}

}


// export <

module.exports = client;

// >
10 changes: 9 additions & 1 deletion source/command/encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@

class encrypt {

constructor() {
constructor(

ivSize = 16,
keySize = 32,
outputEncoding = 'hex',
inputEncoding = 'utf-8',
algorithm = 'aes-256-cbc'

) {



Expand Down

0 comments on commit bcf901b

Please sign in to comment.