2020-11-09 10:18:14 +00:00
|
|
|
# VylBot App
|
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
Discord bot for Vylpes' Den Discord Server.
|
2020-11-09 10:18:14 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Download the latest version from the [releases page](https://github.com/Vylpes/vylbot-app/releases).
|
|
|
|
|
|
|
|
Copy the config template file and fill in the strings.
|
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- NodeJS v16
|
|
|
|
- Yarn
|
|
|
|
|
2020-11-09 10:18:14 +00:00
|
|
|
## Usage
|
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
Install the dependencies and build the app:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn install
|
|
|
|
yarn build
|
|
|
|
```
|
|
|
|
|
|
|
|
Setup the database (Recommended to use the docker-compose file)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
Copy and edit the settings files
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cp .env.template .env
|
|
|
|
# Edit the .env file
|
|
|
|
|
|
|
|
cp ormconfig.json.template ormconfig.json
|
|
|
|
# Edit the ormconfig.json file
|
|
|
|
```
|
|
|
|
|
|
|
|
> **NOTE:** Make sure you do *not* check in these files! These contain sensitive information and should be treated as private.
|
|
|
|
|
|
|
|
Start the bot
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn start
|
|
|
|
```
|
2020-11-09 10:18:14 +00:00
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
Alternatively, you can start the bot in development mode using:
|
2020-11-09 10:18:14 +00:00
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
```bash
|
|
|
|
yarn start --dev
|
2020-11-09 10:18:14 +00:00
|
|
|
```
|
|
|
|
|
2022-04-09 14:11:06 +01:00
|
|
|
> Dev mode ensures that the default prefix is different to the production mode, in case you have both running in the same server.
|