Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Expand All @@ -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).
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"keywords": [],
"author": "PartMan7",
"license": "ISC",
"license": "MIT",
"dependencies": {
"@js-temporal/polyfill": "^0.5.1",
"@swc/core": "^1.7.40",
Expand Down Expand Up @@ -67,4 +67,4 @@
"@swc/core-linux-x64-gnu": "^1.2.160",
"@parcel/watcher-linux-x64-glibc": "^2.5.1"
}
}
}
2 changes: 1 addition & 1 deletion src/config/web.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const port = process.env.WEB_PORT ?? 8080;
export const port = parseInt(process.env.WEB_PORT ?? '8080', 10);
4 changes: 2 additions & 2 deletions src/globals/prototypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Object.defineProperties(Array.prototype, {
enumerable: false,
writable: false,
configurable: false,
value: function T<T>(this: T[], amount: number, rng?: RNGSource): T[] {
value: function <T>(this: T[], amount: number, rng?: RNGSource): T[] {
const RNG = useRNG(rng);
const sample = Array.from(this),
out: T[] = [];
Expand Down Expand Up @@ -349,4 +349,4 @@ Object.defineProperties(Number.prototype, {
for (let i = 0; i < this; i++) callback(i);
},
},
});
});
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dotenv/config';
import '@/globals';
import { Logger } from '@/utils/logger';

Logger.log('PartBot is starting up...');

import '@/discord';
import '@/ps';
import '@/web';

import '@/sentinel';
import { Logger } from '@/utils/logger';
import '@/sentinel';