1.1.1 • Published 10 months ago

@tehpixel/discord-commandhandler v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months 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

10 months ago

1.1.0

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago