Getting Started
Welcome to the discordbot-script official documentation! Current version is 3.3.1.
Please report any and all bugs to the Developers in our Discord Support Server.

Installing DB-Script

Discord bot script is super simple and easy to install!
Your project must be on node version 12 or higher to work properly!
1
$ npm install discordbot-script
Copied!

Starting code

DB-script is a super simple coding library, meaning you can make a super-intensive bot, with less work than other libraries.
1
const Dlang = require('discordbot-script')
2
const bot = new Dlang({
3
token: "TOKEN",
4
prefix: ["?"]
5
})
6
7
bot.MessageEvent()
8
9
bot.Command({
10
name: "ping",
11
code: `
12
$ping
13
`
14
})
15
16
bot.Command({
17
name: "say",
18
code: `
19
$message[]
20
`
21
})
22
23
.....and so on
Copied!

Optional Feature:

You can choose to write multiple commands under the same bot.Command({. You don't have to call the event for each command in your main file.

This is helpful for users who are not using a command handler and for the commands written in the main file! Just be sure to use the format as described if you choose to use this method of writing.
1
bot.Command({
2
name: "hi",
3
code: `hello`
4
},
5
{
6
name: "bye",
7
code: `lol ok bye`
8
},
9
{
10
name: "oof",
11
code: `oof back to you`
12
})
Copied!

Don't forget to check out the Guides and all of the command functions available to you on the most updated version!

Always have fun with it! Making a discord bot can be a very awarding journey!
Don't forget to join our discord server!
Last modified 1mo ago