New World War Bot is a DiscordBot assisting in wars by calling respawn waves.
Use the following link to setup the bot.
Invite the Bot to your server and use /help
for a list of commands
Install the latest node version here
Install ffmpeg here
Install Docker here
Setup an .env
file in the project folder with the following entries:
Key | Value |
---|---|
DATABASE_URL | postgresql://nwbot:PASSWORD@localhost:5432/nwbot?schema=public |
TOKEN | Discord Token |
POSTGRES_PASSWORD | Standard Password for the default postgres user |
Run:
docker compose up -d
connect to the running postgresql and run:
CREATE USER nwbot WITH PASSWORD '[YOUR PASSWORD DEFINED IN DATABASE_URL]' CREATEDB;
To install all npm packages, run:
npm install
To setup the database schema, run:
npx prisma migrate dev
To deploy all commands, run:
node ./src/deployCommands.js
To start the server, run
node ./src/main.js