> For the complete documentation index, see [llms.txt](https://ephf.gitbook.io/discord-short/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ephf.gitbook.io/discord-short/terminal-commands-creating-a-bot/creating-and-removing-bots.md).

# 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 %}
