From cbe55b78b41d44784f1436a325513f0dcedde8e1 Mon Sep 17 00:00:00 2001 From: N3mEee <62804947+N3mEee@users.noreply.github.com> Date: Wed, 19 Jul 2023 21:33:36 +0200 Subject: [PATCH 1/7] Fix ChatSend type Signed-off-by: N3mEee <62804947+N3mEee@users.noreply.github.com> --- src/API1.1/KeyAuth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API1.1/KeyAuth.js b/src/API1.1/KeyAuth.js index eaf6fd1..57f5dc3 100644 --- a/src/API1.1/KeyAuth.js +++ b/src/API1.1/KeyAuth.js @@ -507,7 +507,7 @@ class KeyAuth { this.check_initialize() const post_data = { - type: 'fetchOnline', + type: 'chatsend', message: Message, channel: ChannelName, sessionid: this.sessionid, From 87fe7ddf35b7572732310779d672c2e371e9d2f6 Mon Sep 17 00:00:00 2001 From: mazkdevf <79049205+mazkdevf@users.noreply.github.com> Date: Tue, 22 Aug 2023 00:28:15 +0300 Subject: [PATCH 2/7] Update README.md Signed-off-by: mazkdevf <79049205+mazkdevf@users.noreply.github.com> --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 9cdb878..bb21189 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,6 @@ #### **KeyAuth 1.1 API EndPoint Example** **[Redirect to Example Project](./src/API1.1/)** -#### **KeyAuth 1.2 API --> NOT OUT YET <--** -**[Redirect to Example Project](./src/API1.2/)** - - ### **Contributing** If you are interested with Contributing on this project open an issue and we will discuss with it, or you can also open a pull request and we will review it. If your pull request is Good, and Perfect without any issues we will merge it. From bb03c497043d083be13f84f7d79653664d7de261 Mon Sep 17 00:00:00 2001 From: Monkie Date: Sun, 1 Oct 2023 19:31:01 +0100 Subject: [PATCH 3/7] docs: update src/API1.2/README.md --- src/API1.2/README.md | 144 +------------------------------------------ 1 file changed, 2 insertions(+), 142 deletions(-) diff --git a/src/API1.2/README.md b/src/API1.2/README.md index 5c782d5..22be7ac 100644 --- a/src/API1.2/README.md +++ b/src/API1.2/README.md @@ -1,145 +1,5 @@ ## KeyAuth JavaScript Example -- Not Available Yet +We now have [KeyAuthJS]{https://www.npmjs.com/package/@keyauthjs/client} this can be used with 1.2 onwards ------------ -### **Example Codes** - - - -##### **Filling KeyAuth Class Constructor** -```js -const KeyAuthApp = new KeyAuth( - '', // Application Name - '', // Application OwnerId - '', // Application Secret - '1.0' // Application Version -); -``` - -##### **Initializing Application** -```js -await KeyAuthApp.Initialize(); -``` ---- - -##### **General Features** -###### **Login** -```js -await KeyAuthApp.login("", ""); -``` - -###### **Register** -```js -await KeyAuthApp.register("", "", "", "") -``` - -###### **Forgot** -```js -await KeyAuthApp.forgot("", ""); -``` - - -###### **License Login** -```js -await KeyAuthApp.license(""); -``` - -###### **Upgrade an Account** -```js -await KeyAuthApp.upgrade("", ""); -``` ---- - -##### **Variables** -###### **Get Public Variable** -```js -await KeyAuthApp.var(""); -``` - -###### **Get User Variable** -```js -await KeyAuthApp.GetVar(""); -``` - -###### **Set User Variable** -```js -await KeyAuthApp.SetVar("", ""); -``` ---- -##### **Banning Logged in User** -```js -await KeyAuthApp.ban(); -``` ---- - -##### **File Downloads** -```js -await KeyAuthApp.file(""); -``` ---- -##### **Webhooks** - -###### Normal Request with Params -```js -await KeyAuthApp.webhook("", "") -``` - -###### Webhook Request with Body & Content Type -```js -await KeyAuthApp.webhook("", "", "", ""); -``` - -###### Discord Webhook Example -```js -await KeyAuthApp.webhook("", "", "{\"content\": \"webhook message here\",\"embeds\": null}", "application/json"); -``` ---- -##### **Checks** -###### Check Session Status -```js -await KeyAuthApp.check(); -``` - -##### **Check Blacklist Status** -```js -await KeyAuthApp.checkBlack(); -``` - -##### **Check / Fetch Online Users** -```js -await KeyAuthApp.fetchOnline(); -``` ---- - - -##### **Chats** -###### Get 20 Latest Chat Messages - -```js -await KeyAuthApp.ChatGet(); -``` - -###### Send Chat Message -```js -await KeyAuthApp.ChatSend("", ""); -``` ---- - -##### **Logs** -```js -await KeyAuthApp.log(""); -``` ---- - -### **Additional / Extra Functions** - -##### **Set/Change Console Title** -```js -await KeyAuthApp.setTitle(""); -``` - -##### **Sleep is ms(s)** -```js -await KeyAuthApp.sleep("<1 sec = 1000ms>") -``` \ No newline at end of file +This [repo]{https://github.com/lIMonkieIl/keyauth-js} was created by someone from our community please go and give the project a star. \ No newline at end of file From f61ae55cbd7cc6560f683b967e198991952cebad Mon Sep 17 00:00:00 2001 From: mazkdevf <79049205+mazkdevf@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:08:09 +0300 Subject: [PATCH 4/7] Update FUNDING.yml Signed-off-by: mazkdevf <79049205+mazkdevf@users.noreply.github.com> --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index dc54c10..8afc379 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] +custom: ['https://www.buymeacoffee.com/mazkdevf'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] From 218f9d66082e9d6b1c172f7ea610914879396942 Mon Sep 17 00:00:00 2001 From: Coolbossco <87975966+Coolbossco@users.noreply.github.com> Date: Sun, 31 Dec 2023 12:16:22 -0500 Subject: [PATCH 5/7] added MacOS HWID check Added darwin (MacOS) hwid check to `GetCurrenthardwareId()` --- src/API1.1/KeyAuth.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/API1.1/KeyAuth.js b/src/API1.1/KeyAuth.js index 57f5dc3..5c1561a 100644 --- a/src/API1.1/KeyAuth.js +++ b/src/API1.1/KeyAuth.js @@ -656,13 +656,18 @@ class Misc { * @returns {string} - Returns user HardwareID **/ static GetCurrentHardwareId() { - if (os.platform() != 'win32') return false + let system_id = null; - const cmd = execSync('wmic useraccount where name="%username%" get sid').toString('utf-8') + if (os.platform() === 'win32') { + const cmd = execSync('wmic useraccount where name="%username%" get sid').toString('utf-8'); + system_id = cmd.split('\n')[1].trim(); + } else if (os.platform() === 'darwin') { + const cmd = execSync("ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { print $3; }'").toString('utf-8'); + system_id = cmd.trim(); + } - const system_id = cmd.split('\n')[1].trim() - return system_id - }; + return system_id; +}; /** * Error Print Function From 1cfb7fe10ba3d46157ed7bcca0a703408379c2d6 Mon Sep 17 00:00:00 2001 From: 4real <100953533+strainxx@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:25:43 +0200 Subject: [PATCH 6/7] Fix links Signed-off-by: 4real <100953533+strainxx@users.noreply.github.com> --- src/API1.2/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API1.2/README.md b/src/API1.2/README.md index 22be7ac..6f9422e 100644 --- a/src/API1.2/README.md +++ b/src/API1.2/README.md @@ -1,5 +1,5 @@ ## KeyAuth JavaScript Example -We now have [KeyAuthJS]{https://www.npmjs.com/package/@keyauthjs/client} this can be used with 1.2 onwards +We now have [KeyAuthJS](https://www.npmjs.com/package/@keyauthjs/client) this can be used with 1.2 onwards -This [repo]{https://github.com/lIMonkieIl/keyauth-js} was created by someone from our community please go and give the project a star. \ No newline at end of file +This [repo](https://github.com/lIMonkieIl/keyauth-js) was created by someone from our community please go and give the project a star. From 25fdef681d1610d66285f6a3e4fc19b309f6993f Mon Sep 17 00:00:00 2001 From: "mazkdevf (Make)" <79049205+mazkdevf@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:07:48 +0200 Subject: [PATCH 7/7] Delete .deepsource.toml Signed-off-by: mazkdevf (Make) <79049205+mazkdevf@users.noreply.github.com> --- .deepsource.toml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index c48f8c4..0000000 --- a/.deepsource.toml +++ /dev/null @@ -1,9 +0,0 @@ -version = 1 - -[[analyzers]] -name = "javascript" -enabled = true - -[[transformers]] -name = "standardjs" -enabled = true \ No newline at end of file