> For the complete documentation index, see [llms.txt](https://nutsogreat.gitbook.io/ultimate-bot-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nutsogreat.gitbook.io/ultimate-bot-tutorial/master.md).

# Installation guide for The Ultimate Bot

## Step 1: Downloading Node.js and setting up a discord account

Node.js is a powerful runtime library for [javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) that's completely free to use, and you'll need it for running the bot. Download it at [nodejs.org](https://nodejs.org/en/) and install it if you haven't already.\
\
You also need a Discord account and your own server to use and test the bot, if you haven't created one yet, head over to [Discord.com](https://discord.com) to create one. Once you've created an account, create a server to send your bot to go to.

## Step 2: Installing the bot files

If the bot you purchased requires a database, you're going to need to install Python 2.7, download it [here](https://www.python.org/download/releases/2.7/).

After installing Python, and once you've gotten the bot files, extract the archive using File Explorer. Once in the bots directory, click on **File**, hover over **Open Windows PowerShell**, and click **Open Windows PowerShell as Administrator**.\
\
Then once PowerShell opens, you're going to need to run a few commands. First, type `npm i --save` and press enter to download the required prerequisites for running the bot. Then you're going to need to install Windows Build Tools.

```
npm install --global --production --vs2015 --add-python-to-path windows-build-tools
npm install --global --production --add-python-to-path windows-build-tools node-gyp
```

## Step 3: Obtaining a bot token

![](/files/-MExaMKXH0N6CgM1Vjnp)

Now you'll need to create an "application" in the Discord Developer Portal to get the bot up and running. create an application [here](https://discord.com/developers/applications/me)\
\
Click on *New Application* to get started. Give your application a name, then, on the right-hand menu, click *Bot*. once you're there, click *Add Bot* under the *Build-a-bot* option. Give your bot a name, and click save changes. Under token, click copy. Then once you have the token, in your bot files, go to the settings folder and put the token into the box labeled BOT\_TOKEN under BOT\_SETTINGS

## Step 4: Adding your bot to your server

Now that you have your bot created, you're going to need to invite the bot to your server. To invite the bot, go to the [Developer Portal](https://discord.com/developers/applications/), open your application, go to **General Information**, and then copy the Client ID. You're then going to head over to the [Discord Permission Calculator](https://discordapi.com/permissions.html#8) and at the bottom, paste the Client ID into the box labeled Client ID, and then click the generated link at the bottom to invite it to your server.

## Step 5: Running the bot

Once you've invited the bot to your server, and installed everything necessary for running the bot, you're finally ready to deploy it! To run the bot, go to the bots directory, click File > Open Windows PowerShell\
and once it opens, type the command `node .` and after a few seconds, it should be up and running and ready to serve your server.
