1.1.1 • Published 4 years ago
@miftikcz/miftcmd v1.1.1
MiftCMD
aka easy way to create discord bot
Why you should use miftcmd
- Very easy to setup
- In-Build help and invite command
- For static commands you need only one line
- You can add category, aliases, required permissions and more using one object!
Setup
const miftcmd = require("@miftikcz/miftcmd")
const client = new miftcmd({
    prefix: "!" // you can use any prefix you want
})
client.log("your_token")Basic command
const miftcmd = require("@miftikcz/miftcmd")
const client = new miftcmd({
    prefix: "!" // you can use any prefix you want
})
client.command("hello", {
    execute: ({message}) => {
        message.channel.send("Hi!")
    }
})
client.log("your_token")Basic static command
const miftcmd = require("@miftikcz/miftcmd")
const client = new miftcmd({
    prefix: "!" // you can use any prefix you want
})
client.static("hello", "Hi!")
client.log("your_token")Add Pre-Build commands
const miftcmd = require("@miftikcz/miftcmd")
const client = new miftcmd({
    prefix: "!" // you can use any prefix you want
})
client.static("hello", "Hi!")
client.use_pre_build_invite() // invite command
client.use_pre_build_help() // help command 
client.log("your_token")Every thing you can use
const miftcmd = require("@miftikcz/miftcmd")
const client = new miftcmd({
    prefix: "!",
    color: "#000000"
    no_perms_msg = "",
    help_title_msg = "",
    help_description_msg = "", // you can use palceholder $prefix$
    invite_title = "",
    status = "", // For example you can type here "Use !help for commands" etc.
    bot = true,
    default_category = ""
})
client.command("test" /* command name: string*/, {
    aliases: [],
    description: "Very useful command",
    required_permissions: [],
    category: "useful commands"
    args: "", // any
    execute: function({
        prefix,command,args,message,client,Discord
    }) {
        message.reply(
            "text" /* text */, 
            true /* disable ping ? */
        )
    }
})
client.static("static_command", "static reply", /* optional */ {
    aliases: [],
    description: "Very useful static command",
    required_permissions: [],
    category: "useful static commands"
    args: "", // any
})