Started database manager
This commit is contained in:
@@ -2,10 +2,10 @@ const commandH = require('../commandHandler');
|
||||
const bot = require('../botClient').bot;
|
||||
|
||||
exports.loadModule = function loadModule () {
|
||||
commandH.endpoint('^ping test$', (match, message) => {
|
||||
bot.createMessage(message.channel.id, 'hey ho');
|
||||
commandH.endpoint('^ping$', (match, message) => {
|
||||
bot.createMessage(message.channel.id, 'Pong');
|
||||
});
|
||||
commandH.endpoint('^ping test (.*)$', (match, message) => {
|
||||
bot.createMessage(message.channel.id, 'hey ho ' + match[1]);
|
||||
commandH.endpoint('^ping (.*)$', (match, message) => {
|
||||
bot.createMessage(message.channel.id, 'Pong : ' + match[1]);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user