matrixcord
v1.0.1
Published
Multipurpose framework for discord.js
Downloads
11
Maintainers
Readme
MatrixCord
About
MatrixCord is a multipurpose framework for discord.js which is based on and extends discord.js-commando.
It's created for and used in MatrixBot a multipurpose Discord Bot.
Features
- All features from discord.js-commando
- Beautiful commands using Embeds
- Changeable server specific favorite color
- Event handler
Installation
npm install matrixcord
Sample usage
// Import in ES6 style or via require()
import { MatrixClient } from 'matrixcord'
import * as path from 'path'
const client = new MatrixClient({/* Optional options */})
client.once('ready', () => {
client.registry
.registerDefaultTypes() // Register Commando's default types
.registerDefaultGroups() // Register Commando's default groups
client.matrixRegistry
.registerDefaultCommands({/* Optional options */}) // Register default commands
.registerEventsIn(path.join(__dirname, 'events')) // Register all event files in the specified directory
})
client.login('BOT_TOKEN')
Documentation
View the docs here.
See the discord.js-commando documentation and discord.js documentation as well.