Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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](docs/STRUCTURE.md).
6 changes: 3 additions & 3 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,7 +33,7 @@ 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

Expand Down
2 changes: 1 addition & 1 deletion 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
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);
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dotenv/config';
import '@/globals';
import { Logger } from '@/utils/logger';

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

Expand All @@ -8,4 +9,3 @@ import '@/ps';
import '@/web';

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