From 8887c68cd1340d76dd368c6a2b5f589d891b8cff Mon Sep 17 00:00:00 2001 From: Reishi Date: Wed, 17 Apr 2024 17:59:11 +0200 Subject: [PATCH 1/2] Set minimum node version requirement --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 6bc4fc0..3d0b627 100644 --- a/package.json +++ b/package.json @@ -28,5 +28,9 @@ "@types/node-cron": "^3.0.11", "nodemon": "^3.0.1", "typescript": "^5.3.3" + }, + "engines" : { + "npm" : ">=8.0.0", + "node" : ">=16.0.0" } } From 7f7a8e461aa02a4c5e4e110ed22ba641aee82993 Mon Sep 17 00:00:00 2001 From: Reishi Date: Wed, 17 Apr 2024 18:14:42 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 2110c79..ca75047 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ mkdir lavalink 2. Create a file called `applcation.yml` and fill it out according to your needs. ```sh touch application.yml -vim application.yml +nano application.yml ``` ## 🚀 Installation using the source code @@ -140,35 +140,8 @@ cd The-World-Machine-Bot ```sh npm i --omit=dev ``` -4. Setup environment variables: -```env -# Token for the bot to login with -BOT_TOKEN= - -# Available options: trace, debug, info, warn, error, fatal -LOG_LEVEL=info - -# This is used in the starboard script to display tenorgif correctly -TENOR_API_KEY=null - -# Time after which the bot will leave the voice channel if idling -PLAYER_TIMEOUT=10 - -# Available options: postgres, sqlite -DATABASE_DIALECT=sqlite # It's recommended to use a postgres database -DATABASE_HOST=localhost -DATABASE_PORT=5432 - -# You only have to change these if you set the DATABASE_DIALECT to postgres -DATABASE_NAME=twm -DATABASE_USERNAME=something -DATABASE_PASSWORD=password - -LAVALINK_HOST=127.0.0.1 -LAVALINK_PORT=2333 -LAVALINK_PASSWORD=youshallnotpass -``` -4. Start the bot +4. Rename the `.env.example` file to `.env` and fill it out +5. Start the bot ```sh npm start ```