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

b& for 45 years

This commit is contained in:
reality 2015-03-14 13:50:31 +00:00
parent ce149998d8
commit 0dac6bd576

View File

@ -132,7 +132,7 @@ var commands = function(dbot) {
console.log('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]);
});
if(latest_ban != 0) {
if(latest_ban.time != 0) {
if(latest_unban.time == 0 || (latest_unban.time < latest_ban.time)) {
event.reply('Current Ban Status: Banned since ' + moment(latest_ban.time).fromNow() + ' (since ' + moment(parseInt(latest_ban.time)).format('DD/MM/YYYY') + ')');
event.reply('Reason: ' + latest_ban.message);