Nexus
Discord
  • 📗Getting Started
    • Nexus Website
  • 👥Contributors
  • 🤝Code of Conduct
  • 🚨License
  • 📔Contributing
  • git
    • 🍎Installing Git on MacOS
    • 🪟Installing Git on Windows
    • 🐧Installing Git on Linux
    • 🛠️Git Guide
  • Building the Bot
    • Before you begin
    • First Steps
    • The .env file
    • Custom Bot Functions
  • Commands
    • Creating Commands
    • Creating User Installed Commands
    • Creating Developer Commands
    • Developer Guild Commands
    • Autocomplete
  • Client Modifications
    • client.m
  • handler
    • Handling Discord Events
    • Handling Components
  • Scripts
    • Our customs scripts
    • package.json
    • cleardb
    • db
    • client
    • fetch
    • reset
  • Database
    • MongoDB Connection
    • MongoDB Schemas
  • Resources
    • Privacy Policy
    • Terms of Service
    • NodeJS Download
    • Discord.js
    • Discord.js v14 Guide
    • Discord.js v14 Docs
  • Code Editors
    • Finding your best Code editor
    • Visual Studio IDE Download
    • Visual Studio Code Download
    • VS Code Insiders Download
    • Jetbrains WebStorm Download
    • Jetbrains Fleet Download
    • Jetbrains Aqua Download
Powered by GitBook
On this page
  • Step 1: Cloning the GitHub Repository
  • Step 2: Installing required dependencies
  • Step 3: Updating dependencies
  • Step 4: The first start
  1. Building the Bot

First Steps

PreviousBefore you beginNextThe .env file

Last updated 9 months ago

Step 1: Cloning the GitHub Repository

Before using the following command, make sure you have installed git on your machine. A install guide is in this documentation.

Open a new terminal in your code editor and type in:

git clone https://github.com/cptcr/nexus.git

This will clone all files into a new folder which is named 'nexus'.

Now we want to move into our bots directory. To do this, simply type the following command into your console:

cd nexus

Step 2: Installing required dependencies

Go to your terminal and type in this command:

npm i

This command installs every dependecy from package.json. If there are some warnings, you can ignore them. Most of them will be fixxed in the next step.

Step 3: Updating dependencies

To fix most created errors, run the following command in your terminal:

npm update --list

This command will update all of your dependencies to their latest versions.

Step 4: The first start

Yes, finally you can start the bot. To do this run node . in the terminal. Because its the first start, you will be prompted to fill in some informations. You can type anything in there. You can change it later in the created .env file.

As you can see, in ./.env there is everything you filled into the startup questions. A documentation for the .env file is on the next page.

The picture shows the git command and the cloned files.
This is how your console should look like.