1.1.1 • Published 1 year ago

@tehpixel/discord-commandhandler v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Discord-Command-Handler

A simple npm module to use command with Discord-Command-Handler

Installation

npm install @tehpixel/discord-commandhandler
// After add this handler you can add to your bot free commands
const CommandHandler = require('@tehpixel/discord-commandhandler');
const bot = new CommandHandler('YOUR_BOT_TOKEN', prefix); // change the to your bot token and insted of the prefix , put your prefix exemple: "!", "?", "$";

// Register a command
bot.addCommand('ping', (message) => {
  message.reply('Pong!');
});

bot.addCommand('hello', (message) => {
  message.reply('Hello, world!');
});

// Start the bot
bot.start();
1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago