3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

automatically post version on greload and fix removealias bug

This commit is contained in:
reality 2013-08-18 19:55:06 +00:00
parent 74558aea20
commit 239e94fe05
2 changed files with 2 additions and 5 deletions

View File

@ -46,10 +46,7 @@ var commands = function(dbot) {
exec("git submodule update", function (error, stdout, stderr) { exec("git submodule update", function (error, stdout, stderr) {
event.reply(dbot.t('gpull')); event.reply(dbot.t('gpull'));
commands['~reload'](event); commands['~reload'](event);
event.message = '~version'; commands['~version'](event);
event.action = 'PRIVMSG';
event.params = event.message.split(' ');
dbot.instance.emit(event);
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));
}, },

View File

@ -73,7 +73,7 @@ var commands = function(dbot) {
})); }));
}); });
} else { } else {
event.reply(dbot.t('unknown_alias', { 'alias': nick })); event.reply(dbot.t('unknown_alias', { 'alias': alias }));
} }
}.bind(this)); }.bind(this));
}, },