1.0.5 • Published 3 years ago

better-discord-bot v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Info

This package is in beta, so expect some bugs.


General Info:

  • This package was made to make discord.js easier
    • Installing better-discord-bot is everything you need to get started!
    • I'm working on this package, so expect many updates
    • This is a package with built in functions that will make you write less
  • You can change everything you want, but don't steal the package
  • You may use this package even if you are familiar with discord.js

Installation

npm i better-discord-bot

Usage

Setup:


const bd = require('better-discord-bot') // replace bd with anything you want
const Options = require('better-discord-bot/options') // replace Options with anything you want
const { token } = require('./config.json') // you don't need to import the token, you can just put it in bd.login()

const options = new Options('!', '', 'commands') // replace options with anything you want and modify your options

bd.ready() // set your bot up

bd.message() // make your bot listen for messages

bd.login(token) // login with your token

module.exports = options // export the options for them to apply to the other files

Commands

module.exports = {
    commands: ['ping', 'pong'] || 'ping', // The command name
    expected: 'syntax', // What the user should write
    minArgs: 0, // Min Arguments
    maxArgs: null, // Max Arguments
    permissions: ['BAN_MEMBER', 'KICK_MEMBER'] || 'ADMINISTRATOR', // Permissions needed
    disabled: false, // Whether the command is disabled or not
    run: (message, args, text, client) => {} // What happens if you run the command
}

Options


OptionDefault
Prefix!
Mongo PathNull
Commands Dircommands

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

8.1.3

3 years ago

8.1.2

3 years ago

8.1.1

3 years ago

8.1.0

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.5.3

3 years ago

7.5.2

3 years ago

7.4.2

3 years ago

7.4.1

3 years ago