💬 A small discord.js + cli-ngy boilerplate
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
docs
src
tasks
test
types
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.npmignore
.prettierrc
LICENSE
README.md
jsdoc.json
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

di-ngy

A small discord.js + cli-ngy boilerplate used by lisa-bot

Usage

Create a basic bot:

const Dingy = require("di-ngy");

// new Dingy({config},{commands},{strings},{events});
const bot = new Dingy({
    token: "#botToken#", // Bot-token, should be secret! (Using ENV-vars to store this is recommended)
    prefix: "$", // Prefix to respond to: prefix:'foo' => responds to "foo help"
        options: {
        logLevel: "debug"
    },
    roles: [{
        name: "Admin",
        power: 10,
        assignable: false,
        check: (member) => ["#yourId#"].includes(member.user.id)
    }, {
        name: "User",
        power: 1,
        assignable: true,
        check: () => true
    }],
}, {
    foo: {
        fn: () => "bar",
        alias: [],
        args: [],
        help: {
            short: "First command",
            long: "My first command"
        }
    }
});

bot.connect();