Skip to content

My Easy Key, a program that lets you create and manage temporary keys using Firebase's Firestore Database and Storage

License

Notifications You must be signed in to change notification settings

MrJulusOldRepository/my-easy-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Easy Key

My Easy Key, a program that lets you create and manage temporary keys using Firebase's Firestore Database and Storage

Patch Notes

My Easy Key 1.0.0, Creation of My Easy Key

Requirement

My Easy Key require:

- @discordjs/rest
- axios
- discord.js
- dotenv
- firebase
- fs
- path
- readline

You can install all the dependencies with the command > npm install @discordjs/rest axios discord.js dotenv firebase fs path readline

You have to create a .env file like this :

FIREBASE_API_KEY=YOUR-FIREBASE-API-KEY
FIREBASE_AUTH_DOMAIN=YOUR-FIREBASE-AUTH-DOMAIN
FIREBASE_DATABASE_URL=YOUR-FIREBASE-DATABASE-URL
FIREBASE_PROJECT_ID=YOUR-FIREBASE-PROJECT-ID
FIREBASE_STORAGE_BUCKET=YOUR-FIREBASE-STORAGE-BUCKET
FIREBASE_MESSAGING_SENDER_ID=YOUR-FIREBASE-MESSAGING-SENDER-ID
FIREBASE_APP_ID=YOUR-FIREBASE-APP-ID
FIREBASE_MEASUREMENT_ID=YOUR-FIREBASE-MEASUREMENT-ID

DISCORD_BOT_TOKEN=YOUR-DISCORD-BOT-TOKE
DISCORD_CHANNEL_ID=YOUR-DISCORD-CHANNEL-ID

MYEASYKEY_VERSION=2
MYEASYKEY_BETA_VERSION=2t

!Warning! DONT EDIT MYEASYKEY_VERSION and MYEASYKEY_BETA_VERSION

My Easy Key / Discord Bot

> /bot/index.js
Get the tool (index.js) and api (api.js)
Create an account
Obtain account information
Sets up the document linked to the user
Sets up user key in firestore settings file for automatic key change
Set up key storage space
Automatically changes the key at the time entered in the firestore settings file

> /bot/test.js
- /bot/test.js is used to test new features.
obtains the tool (index.js) and the api (api.js)
Allows you to create an account
Provides account information
Sets up the document linked to the user
Sets up user key in firestore settings file for automatic key change
Set up key storage space
Automatically changes key at time entered in firestore settings file

My Easy Key / Javascript Tool

> index.js
Change key
Set automatic changeover time (5:30pm)
Obtain account information

> api.js
Retrieves code from URL
> admin/reset/used_key.js
Delete all keys already in use
> admin/map/firestore_and_storage.txt
Shows the structure of MyEasyKey
> admin/init/firestore.js
Sets up the document linked to the user
> admin/init/settings.js
Sets up the user's key in the firestore settings file for automatic key changes
> admin/init/storage.js
Sets up key storage space
> admin/init/main.js
Set up user document, user key in firestore settings file for automatic key change and key storage space
> admin/delete/firestore.js
deletes the document linked to the user
> admin/delete/settings.js
deletes the user's key from the firestore settings file for automatic key change
> admin/delete/main.js
Deletes user-related document and user key from firestore settings file for automatic key change.

My Easy Key / Node.js Package

You can use My Easy Key with this command:

npm install my-easy-key

Source Code here of the package : https://github.com/mr-julus/my-easy-key-module

Author

© Mr-Julus 2024, all rights reserved

About

My Easy Key, a program that lets you create and manage temporary keys using Firebase's Firestore Database and Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published