Skip to content

Maciva/DiscordBotNW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New World War Bot

New World War Bot is a DiscordBot assisting in wars by calling respawn waves.

Setup

Use the following link to setup the bot.

Usage

Invite the Bot to your server and use /help for a list of commands

Setup own Server

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

About

DiscordBot For New World

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published