discordbot-script
$ npm install discordbot-script
This package allows you to make Discord bots with ease. We have a similar language structure as the well known mobile app, "Bot Designer for Discord".
If you are not familiar with the app, you can still use this package because its very simple to understand.
const Dlang = require('discordbot-script')
const bot = new Dlang({
token: "TOKEN_HERE",
prefix: ["?"]
})
bot.MessageEvent()
bot.Command({
name: "ping",
code: `
$ping
`
})
EVENTS
You can use events very easily! Events are for allowing the bot to respond when a particular action has taken place. For example, when someone joins the server, there is an event for it, below is an example.
bot.JoinedCommand({
name: "channelID or variable",
code: `
Something here like, <@$authorID> thanks for joining the server!`
})
bot.onJoined()
FUNCTIONS
discordbot-script functions are an essential key to perform tasks and execute commands, lets take a look at the simple example given below:
bot.Command({
name: "clear",
code: `Cleared $message[1] messages
$clear[$message[1]]`
})
CODE INTERPRETATION
All discordbot-script command codes are seen, read and executed by the bot from bottom to top