Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.85 KB

CONTRIBUTING.md

File metadata and controls

47 lines (31 loc) · 1.85 KB

Contributing to PartBot

I welcome all contributors to PartBot! Technical contributors can refer to the documentation below, while non-technical contributors are welcome to check out the Suggestions, Bug Reports, and Feedback docs.


System Requirements and Setup

PartBot requires Node.js v16+ (untested on lower versions) to run, and uses npm as the package manager.

To install, clone this repository and install dependencies.

$ git clone https://github.com/PartMan7/PartBotter.git PartBot
$ cd PartBot
$ npm install

This will also run the prepare script, which installs Husky hooks and patches TypeScript.

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:

  • PREFIX: The prefix to use for commands on PS.
  • PS_USERNAME: The username for the chatbot on PS.
  • PS_PASSWORD: The password for said account. Leave blank if unregistered.
  • PS_OWNER: The username of the Bot owner. Only affects the default help message and credits.
  • PS_ADMINS: A comma-separated list of users on PS to give admin access to.
  • DISCORD_TOKEN: The login token to use for the Discord account. Leave blank to disable Discord.
  • MONGO_URL: The MongoDB connection URL. Leave blank to disable database access/usage.

Running

You can start the chatbot using npm start.

Testing

Currently, PartBot's tests are only a lint test (npm run lint) and TypeScript validity (npm exec tsc). These will automatically run on every pull request.


For details about the structure of PartBot (globals, types, layouts, etc.) please refer to the structure documentation.