# Creating and Removing Bots

now we want to make a bot, you can do this by typing in the command (`$ ds createbot`) with the last argument being the name of the bot file. so running the command:

```bash
$ ds createbot example
```

which will create an `example.js` file, and will have the contents:

{% code title="example.js" %}

```javascript
// create a client
const Discord = require('discord.short');
const ds = new Discord.ShortClient('example');

// login
ds.login({
  "botToken": "...",
  "mongo": {
    "username": "...",
    "password": "...",
    "cluster": "...",
    "database": "discordshort"
  },
  "heroku": {
    "name": "..."
  }
});
```

{% endcode %}

using the premade script, you can enter your data, and you can change the `mongo.database` to anything you would like.

{% hint style="warning" %}
the `"cluster"` section is **not** the cluster name, you want to grab the name and the code. as shown in the image:
{% endhint %}

![in my case, it's "cluster0.epw94"](/files/-Ma-hLv2NAQZuvIJO-EK)

If you make a JavaScript file and want to still add the bot, you can run the command:

```bash
$ ds addbot filename
```

make sure the filename doesn't have `.js` at the end, you can remove bots using this command:

```bash
$ ds rembot filename
```

{% hint style="info" %}
You can access anything in the `discord.js` module when requiring `discord.short`

```javascript
const Discord = require('discord.short'); // requiring
new Discord.MessageEmbed(); // class from discord.js module
```

{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ephf.gitbook.io/discord-short/terminal-commands-creating-a-bot/creating-and-removing-bots.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
