Go to file
Ethan Lane 7c2870d28e
All checks were successful
continuous-integration/drone/push Build is passing
Fix bug where a default config setting wouldn't show the key you were using (#388)
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

- Fix bug where a default config setting wouldn't show the key you were using
- Fix bug where a config which doesn't exist wouldn't show the key you were using

#289

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)

# How Has This Been Tested?

Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration.

- This was tested by checking both a setting which is defaulted and not used, and both now show they key correctly

# Checklist

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that provde my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/vylbot-app/pulls/388
Reviewed-by: VylpesTester <tester@vylpes.com>
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-12-22 14:36:36 +00:00
.gitea Fix typo in PR template (#367) 2023-11-10 18:22:53 +00:00
.github Remove .github folder 2023-07-14 16:11:31 +01:00
data Fix typo in config list saying about messages for member events (#368) 2023-11-10 18:24:08 +00:00
database/3.1/1662399171315-CreateBase/Up Feature/182 setup actions (#186) 2022-09-06 19:24:40 +01:00
docs v3.0 (#145) 2022-04-24 14:46:37 +01:00
scripts Switch to TypeORM's DataSource API (#299) 2023-05-26 17:59:22 +01:00
src Fix bug where a default config setting wouldn't show the key you were using (#388) 2023-12-22 14:36:36 +00:00
tests feature/98-timeout-command-2 (#306) 2023-06-30 17:33:04 +01:00
.dev.env Update IP for server to .120 2023-10-25 14:59:23 +01:00
.dockerignore v3.0 (#145) 2022-04-24 14:46:37 +01:00
.drone.yml Update IP for server to .120 2023-10-25 14:59:23 +01:00
.gitignore v3.0 (#145) 2022-04-24 14:46:37 +01:00
.gitlab-ci.yml VylBot App 21.0.0 2021-02-17 18:12:45 +00:00
.prod.env Update IP for server to .120 2023-10-25 14:59:23 +01:00
.stage.env Update IP for server to .120 2023-10-25 14:59:23 +01:00
docker-compose.prod.yml Feature/182 setup actions (#186) 2022-09-06 19:24:40 +01:00
docker-compose.stage.yml Feature/182 setup actions (#186) 2022-09-06 19:24:40 +01:00
docker-compose.yml Feature/182 setup actions (#186) 2022-09-06 19:24:40 +01:00
jest.config.json v3.0 (#145) 2022-04-24 14:46:37 +01:00
jest.setup.js v3.0 (#145) 2022-04-24 14:46:37 +01:00
LICENSE Add licence (#304) 2023-06-16 17:56:37 +01:00
package.json Merge branch 'main' into develop 2023-10-25 15:06:46 +01:00
README.md v3.0 (#145) 2022-04-24 14:46:37 +01:00
renovate.json Update 'renovate.json' 2022-12-28 18:42:22 +00:00
tsconfig.json v3.0 (#145) 2022-04-24 14:46:37 +01:00
yarn.lock Update dependency @types/node to v20.10.5 (#387) 2023-12-18 13:32:33 +00:00

VylBot App

Discord bot for Vylpes' Den Discord Server.

Installation

Download the latest version from the releases page.

Copy the config template file and fill in the strings.

Requirements

  • NodeJS v16
  • Yarn

Usage

Install the dependencies and build the app:

yarn install
yarn build

Setup the database (Recommended to use the docker-compose file)

docker-compose up -d

Copy and edit the settings files

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

yarn start

Alternatively, you can start the bot in development mode using:

yarn start --dev

Dev mode ensures that the default prefix is different to the production mode, in case you have both running in the same server.