mirror of
https://github.com/reality/dbot.git
synced 2025-02-03 08:04:17 +01:00
more trix
This commit is contained in:
parent
8070875937
commit
ce149998d8
@ -134,12 +134,12 @@ var commands = function(dbot) {
|
|||||||
|
|
||||||
if(latest_ban != 0) {
|
if(latest_ban != 0) {
|
||||||
if(latest_unban.time == 0 || (latest_unban.time < latest_ban.time)) {
|
if(latest_unban.time == 0 || (latest_unban.time < latest_ban.time)) {
|
||||||
event.reply('Current Ban Status: Banned for ' + moment(latest_ban.time).fromNow() + ' (since ' + moment(parseInt(latest_ban.time)).format('DD/MM/YYYY') + ')');
|
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);
|
event.reply('Reason: ' + latest_ban.message);
|
||||||
} else {
|
} else {
|
||||||
var a = moment(latest_ban.time);
|
var a = moment(latest_ban.time);
|
||||||
var b = moment(latest_unban.time);
|
var b = moment(latest_unban.time);
|
||||||
event.reply('Current Ban Status: Unbanned on ' + moment(parseInt(latest_unban.time)).format('DD/MM/YYYY') + ' after being banned for ' + a.from(b));
|
event.reply('Current Ban Status: Unbanned since ' + moment(parseInt(latest_unban.time)).format('DD/MM/YYYY') + ' after being banned for ' + a.from(b));
|
||||||
event.reply('Most recent ban reason: ' + latest_ban.message);
|
event.reply('Most recent ban reason: ' + latest_ban.message);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user