From 9c9d1660a69b0d72519296e3cd986658d1dc8daf Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:07:43 +0530 Subject: [PATCH 01/12] Fix broken links and update repository references in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 86e5f4e..a14ac1e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ PartBot does a lot of stuff across a wide variety of platforms, with a heavy foc ## Suggestions, Bug Reports, and Feedback -See [Suggestions & Feedback](https://github.com/PartMan7/PartBot/tree/main/docs/SUGGESTIONS.md) for ideas, bugs, and requests. Contributions are always welcome! +See [Suggestions & Feedback](docs/SUGGESTIONS.md) for ideas, bugs, and requests. Contributions are always welcome! ## Getting Started @@ -20,7 +20,7 @@ See [Suggestions & Feedback](https://github.com/PartMan7/PartBot/tree/main/docs/ ### Installation & Setup -See the [setup docs](/SETUP.md) for the setup process. +See the [setup docs](SETUP.md) for the setup process. ## Translations @@ -33,10 +33,10 @@ Currently, PartBot supports the following languages on Showdown: - Portuguese (PoC [@Seyhura](https://github.com/Seyhura)) - French (PoC [@Distrib](https://github.com/Distrib-ps)) -Feel free to refer to the [source code](https://github.com/PartMan7/PartBot/tree/main/src/i18n/languages) for the actual translations. +Feel free to refer to the [source code](src/i18n/languages) for the actual translations. ## Credits - [@PartMan7](https://github.com/PartMan7) (Parth Mane) - Lead Developer, Maintainer - [@Audiino](https://github.com/Audiino) - Lead Artist, Maintainer, Victim of being asked to do stuff -- [@zxchan](https://github.com/singiamtel) - putting up with dumb questions +- [@zxchan](https://github.com/singiamtel) - putting up with dumb questions \ No newline at end of file From a8de2e114bd78441bcf3486bfb9b49a938819577 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:09:39 +0530 Subject: [PATCH 02/12] Fix grammar issues and update Node.js version requirement --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 139c6f6..09b41a1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ docs. ## System Requirements and Setup -PartBot requires Node.js v16+ (untested on lower versions) to run, and uses `npm` as the package manager. +PartBot requires Node.js v18+ (v16+ may work but v18+ is recommended) to run, and uses `npm` as the package manager. To install, clone this repository and install dependencies. @@ -22,8 +22,8 @@ This will also run the `prepare` script, which installs Husky hooks and patches ## Configuration -Once with setup, please copy the `.env.example` file to `.env` and change the values accordingly. This file populates -the environment variable. The full list of supported env variables is below: +Once setup is complete, please copy the `.env.example` file to `.env` and change the values accordingly. This file populates +the environment variables. The full list of supported env variables is below: - `PREFIX`: The prefix to use for commands on PS. - `PS_USERNAME`: The username for the chatbot on PS. @@ -44,4 +44,4 @@ automatically run on every pull request. --- -For details about the structure of PartBot (globals, types, layouts, etc.) please refer to the [structure documentation](https://github.com/PartMan7/PartBot/tree/main/docs/STRUCTURE.md). +For details about the structure of PartBot (globals, types, layouts, etc.) please refer to the [structure documentation](https://github.com/PartMan7/PartBot/tree/main/docs/STRUCTURE.md). \ No newline at end of file From ef75375e86ad6b75ec61fe799dd925608c8fb25a Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:10:27 +0530 Subject: [PATCH 03/12] Fix license field to match LICENSE file (MIT instead of ISC) --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1f2c4f0..22f10be 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "keywords": [], "author": "PartMan7", - "license": "ISC", + "license": "MIT", "dependencies": { "@js-temporal/polyfill": "^0.5.1", "@swc/core": "^1.7.40", @@ -67,4 +67,4 @@ "@swc/core-linux-x64-gnu": "^1.2.160", "@parcel/watcher-linux-x64-glibc": "^2.5.1" } -} +} \ No newline at end of file From 66e37ccbe687fb3c2fb41dec4162ab4c26b28ef5 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:15:00 +0530 Subject: [PATCH 04/12] Fix import order: move Logger import before it's used --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 41a87b7..27dad70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import 'dotenv/config'; import '@/globals'; +import { Logger } from '@/utils/logger'; Logger.log('PartBot is starting up...'); @@ -7,5 +8,4 @@ import '@/discord'; import '@/ps'; import '@/web'; -import '@/sentinel'; -import { Logger } from '@/utils/logger'; +import '@/sentinel'; \ No newline at end of file From 28447481bbad7f168fed0361fbe3da7fcc724e09 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:18:38 +0530 Subject: [PATCH 05/12] Fix generic function declaration typo in Array.prototype.sample --- src/globals/prototypes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/globals/prototypes.ts b/src/globals/prototypes.ts index 4911547..3ba6431 100644 --- a/src/globals/prototypes.ts +++ b/src/globals/prototypes.ts @@ -188,7 +188,7 @@ Object.defineProperties(Array.prototype, { enumerable: false, writable: false, configurable: false, - value: function T(this: T[], amount: number, rng?: RNGSource): T[] { + value: function (this: T[], amount: number, rng?: RNGSource): T[] { const RNG = useRNG(rng); const sample = Array.from(this), out: T[] = []; @@ -349,4 +349,4 @@ Object.defineProperties(Number.prototype, { for (let i = 0; i < this; i++) callback(i); }, }, -}); +}); \ No newline at end of file From b2828edf0d47540cafce37af0afce92add210aed Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:22:35 +0530 Subject: [PATCH 06/12] Fix web port type issue - ensure number type --- src/config/web.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/web.ts b/src/config/web.ts index 94f152f..8fb552c 100644 --- a/src/config/web.ts +++ b/src/config/web.ts @@ -1 +1 @@ -export const port = process.env.WEB_PORT ?? 8080; +export const port = parseInt(process.env.WEB_PORT ?? '8080', 10); \ No newline at end of file From 79f25fdc06908a2b32f9b2741800416f0c5f0ea6 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 20:05:34 +0530 Subject: [PATCH 07/12] Fix line ending: ensure file ends with LF --- src/config/web.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/web.ts b/src/config/web.ts index 8fb552c..e2421b4 100644 --- a/src/config/web.ts +++ b/src/config/web.ts @@ -1 +1 @@ -export const port = parseInt(process.env.WEB_PORT ?? '8080', 10); \ No newline at end of file +export const port = parseInt(process.env.WEB_PORT ?? '8080', 10); From 569faf3b87d57babe52690de2aef214c95600922 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 20:05:56 +0530 Subject: [PATCH 08/12] Fix line ending: ensure index.ts ends with LF --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 27dad70..8fc26e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,4 +8,4 @@ import '@/discord'; import '@/ps'; import '@/web'; -import '@/sentinel'; \ No newline at end of file +import '@/sentinel'; From 64e93c3c48f3d1f406ce782537b8c09e2d220bf4 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Thu, 23 Oct 2025 20:07:21 +0530 Subject: [PATCH 09/12] Fix line ending: ensure prototypes.ts ends with LF --- src/globals/prototypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals/prototypes.ts b/src/globals/prototypes.ts index 3ba6431..cba54d8 100644 --- a/src/globals/prototypes.ts +++ b/src/globals/prototypes.ts @@ -349,4 +349,4 @@ Object.defineProperties(Number.prototype, { for (let i = 0; i < this; i++) callback(i); }, }, -}); \ No newline at end of file +}); From 1dbc3c5b0eea32bb7420a9895965324b5117897c Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Fri, 24 Oct 2025 16:28:10 +0530 Subject: [PATCH 10/12] Fix line ending: ensure README.md ends with LF and no accidental duplicate changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a14ac1e..6512df4 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,4 @@ Feel free to refer to the [source code](src/i18n/languages) for the actual trans - [@PartMan7](https://github.com/PartMan7) (Parth Mane) - Lead Developer, Maintainer - [@Audiino](https://github.com/Audiino) - Lead Artist, Maintainer, Victim of being asked to do stuff -- [@zxchan](https://github.com/singiamtel) - putting up with dumb questions \ No newline at end of file +- [@zxchan](https://github.com/singiamtel) - putting up with dumb questions From 656953cfec8ea0918aea11712c73a670872510a5 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:32:00 +0530 Subject: [PATCH 11/12] Fix line ending: ensure package.json ends with LF --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22f10be..5a37cd5 100644 --- a/package.json +++ b/package.json @@ -67,4 +67,4 @@ "@swc/core-linux-x64-gnu": "^1.2.160", "@parcel/watcher-linux-x64-glibc": "^2.5.1" } -} \ No newline at end of file +} From 8834ad2d72758c42c38bde32f2c4755f43ab9f55 Mon Sep 17 00:00:00 2001 From: TurboRx <187360786+TurboRx@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:32:31 +0530 Subject: [PATCH 12/12] Fix line ending and shorten URL in CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 09b41a1..017dcc3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,4 +44,4 @@ automatically run on every pull request. --- -For details about the structure of PartBot (globals, types, layouts, etc.) please refer to the [structure documentation](https://github.com/PartMan7/PartBot/tree/main/docs/STRUCTURE.md). \ No newline at end of file +For details about the structure of PartBot (globals, types, layouts, etc.) please refer to the [structure documentation](docs/STRUCTURE.md).