d.js-bdscript-next

rewrite.

Usage no npm install needed!

<script type="module">
  import dJsBdscriptNext from 'https://cdn.skypack.dev/d.js-bdscript-next';
</script>

README

This is the next version after D.js-BDscript v5.0.0 (or v5)

main file

const Bot = require("d.js-bdscript")

const bot = new Bot({
    prefix: "prefix" //or array of prefixes
    token: "token" //optional, can also be passed to bot.login()
})

bot.command({
    name: "gay",
    type: "basicCommand",
    code: `
    $if[$authorID==YourID;
        $eval[$message]
    ;
        no!
    ]`
})

bot.event("onMessage")

bot.login("token")