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:
which will create an example.js
file, and will have the contents:
example.js
using the premade script, you can enter your data, and you can change the mongo.database
to anything you would like.
the "cluster"
section is not the cluster name, you want to grab the name and the code. as shown in the image:
If you make a JavaScript file and want to still add the bot, you can run the command:
make sure the filename doesn't have .js
at the end, you can remove bots using this command:
You can access anything in the discord.js
module when requiring discord.short
Last updated
Was this helpful?