3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +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) {
event.reply(dbot.t('gpull'));
commands['~reload'](event);
event.message = '~version';
event.action = 'PRIVMSG';
event.params = event.message.split(' ');
dbot.instance.emit(event);
commands['~version'](event);
}.bind(this));
}.bind(this));
},

View File

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